Se realizaron correcciones
This commit is contained in:
@@ -24,10 +24,11 @@ import { CrearServicioDto } from './dto/create-servicio.dto';
|
||||
import { Response } from 'express';
|
||||
import { ServiciosAdminDto } from './dto/servicios-admin.dto';
|
||||
import { ServiciosResponsableDto } from './dto/servicios-responsable.dto';
|
||||
import { RegistroValidadoDto } from './dto/registro-validado.dto';
|
||||
|
||||
@Controller('servicio')
|
||||
export class ServicioController {
|
||||
constructor(private readonly servicioService: ServicioService) {}
|
||||
constructor(private readonly servicioService: ServicioService) { }
|
||||
|
||||
// ------------------ POST ------------------
|
||||
|
||||
@@ -44,6 +45,13 @@ export class ServicioController {
|
||||
return { ok: true };
|
||||
}
|
||||
|
||||
@Post('registro-validado')
|
||||
async registroValidado(
|
||||
@Body() dto: RegistroValidadoDto,
|
||||
): Promise<{ message: string }> {
|
||||
return this.servicioService.registroValidado(dto);
|
||||
}
|
||||
|
||||
@Post('nuevo')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
@UseInterceptors(FileInterceptor('cartaAceptacion'))
|
||||
@@ -104,7 +112,7 @@ export class ServicioController {
|
||||
@Get('reporte')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
async generarReporte(
|
||||
@Query('inicio') inicio: string,
|
||||
@Query('inicio') inicio: string,
|
||||
@Query('fin') fin: string,
|
||||
@Res() res: Response) {
|
||||
const path = await this.servicioService.generarReporte(inicio, fin);
|
||||
@@ -199,4 +207,3 @@ export class ServicioController {
|
||||
return this.servicioService.update(data, files);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user