blob: 3cb40ba0dcd5bccc0267ea2c04c2b527ad2b93c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
export default class ServicesApi {
constructor(server) {
this.server = server;
}
all() {
return this.server.getServices();
}
// one(customerId) {
// return this.server.getCustomer(customerId);
// }
//
// search(needle) {
// return this.server.searchCustomers(needle);
// }
//
create(recipeId, data) {
return this.server.createService(recipeId, data);
}
delete(serviceId) {
return this.server.deleteService(serviceId);
}
update(serviceId, data) {
return this.server.updateService(serviceId, data);
}
reorder(data) {
return this.server.reorderService(data);
}
}
|