Archive und Logging
This commit is contained in:
@@ -24,6 +24,11 @@ export class CylinderController {
|
||||
return this.service.getCylinders(req.user);
|
||||
}
|
||||
|
||||
@Get('archive')
|
||||
getCylinderArchive(@Req() req: AuthenticatedRequest): Promise<Cylinder[]> {
|
||||
return this.service.getDeletedCylinders(req.user);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
deleteKey(@Req() req: AuthenticatedRequest, @Param('id') id: string) {
|
||||
return this.service.deleteCylinder(req.user, id);
|
||||
@@ -44,4 +49,9 @@ export class CylinderController {
|
||||
) {
|
||||
return this.service.createCylinder(req.user, b);
|
||||
}
|
||||
|
||||
@Put(':id/restore')
|
||||
restoreKey(@Req() req: AuthenticatedRequest, @Param('id') id: string) {
|
||||
return this.service.restoreCylinder(req.user, id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user