19 lines
657 B
JavaScript
19 lines
657 B
JavaScript
export class CustomerService {
|
|
getCustomersSmall() {
|
|
return fetch('/demo/data/customers-small.json', { headers: { 'Cache-Control': 'no-cache' } })
|
|
.then((res) => res.json())
|
|
.then((d) => d.data);
|
|
}
|
|
getCustomersMedium() {
|
|
return fetch('/demo/data/customers-medium.json', { headers: { 'Cache-Control': 'no-cache' } })
|
|
.then((res) => res.json())
|
|
.then((d) => d.data);
|
|
}
|
|
|
|
getCustomersLarge() {
|
|
return fetch('/demo/data/customers-large.json', { headers: { 'Cache-Control': 'no-cache' } })
|
|
.then((res) => res.json())
|
|
.then((d) => d.data);
|
|
}
|
|
}
|