Handout management

This commit is contained in:
Bastian Wagner
2024-10-20 14:49:42 +02:00
parent 5e2b900b18
commit aa9abdd512
37 changed files with 754 additions and 67 deletions

View File

@@ -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')
}
}