primevue-mirror/service/ProductService.js

15 lines
406 B
JavaScript
Raw Normal View History

2020-06-30 11:43:29 +00:00
export default class ProductService {
getProductsSmall() {
2021-10-05 07:41:07 +00:00
return fetch('demo/data/products-small.json').then(res => res.json()).then(d => d.data);
2020-06-30 11:43:29 +00:00
}
getProducts() {
2021-10-05 07:41:07 +00:00
return fetch('demo/data/products.json').then(res => res.json()).then(d => d.data);
2020-07-01 08:55:56 +00:00
}
2020-07-01 10:51:46 +00:00
2020-07-01 08:55:56 +00:00
getProductsWithOrdersSmall() {
2021-10-05 07:41:07 +00:00
return fetch('demo/data/products-orders-small.json').then(res => res.json()).then(d => d.data);
2020-06-30 11:43:29 +00:00
}
}