Handout management
This commit is contained in:
@@ -43,4 +43,21 @@ export class ApiService {
|
||||
postKeySystem(keySystem: any) {
|
||||
return this.http.post('api/key/system', keySystem);
|
||||
}
|
||||
|
||||
handoverKey(data: any) {
|
||||
return this.http.post(`api/key/${data.key.id}/handover`, data);
|
||||
}
|
||||
|
||||
getHandovers(keyID: string): Observable<any[]> {
|
||||
return this.http.get<any[]>(`api/key/${keyID}/handover`);
|
||||
}
|
||||
|
||||
createCustomer(data: { name: string, system: any}) {
|
||||
return this.http.post('api/customer', data);
|
||||
}
|
||||
|
||||
getCustomers(): Observable<any[]> {
|
||||
return this.http.get<any[]>('api/customer')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user