15 lines
429 B
JavaScript
15 lines
429 B
JavaScript
export default class ProductService {
|
|
|
|
getProductsSmall() {
|
|
return fetch('/public/demo/data/products-small.json').then(res => res.json()).then(d => d.data);
|
|
}
|
|
|
|
getProducts() {
|
|
return fetch('/public/demo/data/products-small.json').then(res => res.json()).then(d => d.data);
|
|
}
|
|
|
|
getProductsWithOrdersSmall() {
|
|
return fetch('/public/demo/data/products-small.json').then(res => res.json()).then(d => d.data);
|
|
}
|
|
}
|