se creo el endpoint de registro
This commit is contained in:
@@ -247,4 +247,14 @@ export class ServicioController {
|
||||
return this.servicioService.update(data, files);
|
||||
}
|
||||
|
||||
@Put('registro')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
async registro(@Body() body: { idServicio: number }) {
|
||||
try {
|
||||
return this.servicioService.registro(body.idServicio);
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user