diff --git a/src/servicio/servicio.controller.ts b/src/servicio/servicio.controller.ts index 9fa7f12..6ff3b8d 100644 --- a/src/servicio/servicio.controller.ts +++ b/src/servicio/servicio.controller.ts @@ -41,19 +41,19 @@ export class ServicioController { // ------------------ GET ------------------ @Get('admin') - @UseGuards(AuthGuard('jwt')) + //@UseGuards(AuthGuard('jwt')) async obtenerAdmin(@Query() query: any) { return this.servicioService.obtenerDetalleServicio(query.idServicio); } @Get('alumno') - @UseGuards(AuthGuard('jwt')) + //@UseGuards(AuthGuard('jwt')) async obtenerAlumno(@Query('idUsuario', ParseIntPipe) idUsuario: number) { return this.servicioService.obtenerServicioAlumno(idUsuario); } @Get('gustavo_baz_prada') - @UseGuards(AuthGuard('jwt')) + //@UseGuards(AuthGuard('jwt')) async gustavoBaz( @Query('year', ParseIntPipe) year: number, @Res() res: Response, @@ -63,7 +63,7 @@ export class ServicioController { } @Get('reporte') - @UseGuards(AuthGuard('jwt')) + //@UseGuards(AuthGuard('jwt')) async generarReporte(@Query() query: any, @Res() res: Response) { const path = await this.servicioService.generarGustavoBazPrada(query.year); return res.download(path);