This commit is contained in:
Bastian Wagner
2024-10-23 13:58:14 +02:00
parent d4ddcafd2b
commit b453945183
33 changed files with 570 additions and 19 deletions

View File

@@ -38,6 +38,7 @@ export class ApiService {
}
createKey(key: any) {
return this.http.post<IKey>('api/key', key);
}
postKeySystem(keySystem: any) {
@@ -60,4 +61,15 @@ export class ApiService {
return this.http.get<any[]>('api/customer')
}
deleteKey(id: string) {
return this.http.delete(`api/key/${id}`);
}
getKeyArchive(): Observable<IKey[]> {
return this.http.get<IKey[]>('api/key/archive');
}
restoreKey(id: string) {
return this.http.put(`api/key/${id}/restore`, null);
}
}