blob: 5bd8aa60e97ed769f4bd08b62d18b8e764fab1ee (
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
34
|
export default class ServicesApi {
server: any;
local: any;
constructor(server: any, local: any) {
this.server = server;
this.local = local;
}
all() {
return this.server.getServices();
}
create(recipeId: string, data: any) {
return this.server.createService(recipeId, data);
}
delete(serviceId: string) {
return this.server.deleteService(serviceId);
}
update(serviceId: string, data: any) {
return this.server.updateService(serviceId, data);
}
reorder(data: any) {
return this.server.reorderService(data);
}
clearCache(serviceId: string) {
return this.local.clearCache(serviceId);
}
}
|