se comentaron unas lineass en servicio controller para hacer pruebas
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user