primevue-mirror/service/ProductService.js

20 lines
524 B
JavaScript

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