se creo el endpoint de registro

This commit is contained in:
evenegas
2026-01-09 13:25:47 -06:00
parent bba0aa12cc
commit b7d22cc07e
+10
View File
@@ -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;
}
}
}