Archive
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user