institucion final
This commit is contained in:
@@ -66,21 +66,21 @@ export class UploadFileController {
|
||||
);
|
||||
}
|
||||
|
||||
@Get('download-logo')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
@ApiBearerAuth('jwt')
|
||||
downloadLogo(
|
||||
@Request() req,
|
||||
@Response() res,
|
||||
@Query() query: IdInstitucionDto,
|
||||
) {
|
||||
const operador: Operador = req.user.operador;
|
||||
// @Get('download-logo')
|
||||
// @UseGuards(AuthGuard('jwt'))
|
||||
// @ApiBearerAuth('jwt')
|
||||
// downloadLogo(
|
||||
// @Request() req,
|
||||
// @Response() res,
|
||||
// @Query() query: IdInstitucionDto,
|
||||
// ) {
|
||||
// const operador: Operador = req.user.operador;
|
||||
|
||||
this.validarUsuarioService.validarAdminOperador(operador);
|
||||
return this.uploadFileService
|
||||
.downloadLogo(parseInt(query.id_institucion))
|
||||
.then((logo) => res.download(logo));
|
||||
}
|
||||
// this.validarUsuarioService.validarAdminOperador(operador);
|
||||
// return this.uploadFileService
|
||||
// .downloadLogo(parseInt(query.id_institucion))
|
||||
// .then((logo) => res.download(logo));
|
||||
// }
|
||||
|
||||
@Get('download-plantilla-equipos')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
|
||||
Reference in New Issue
Block a user