se agregò endpoint para traer ususarios y funcion diaria
This commit is contained in:
@@ -22,6 +22,7 @@ import { AuthGuard } from '@nestjs/passport';
|
||||
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';
|
||||
|
||||
@Controller('servicio')
|
||||
export class ServicioController {
|
||||
@@ -54,6 +55,12 @@ export class ServicioController {
|
||||
return await this.servicioService.obtenerServiciosAdmin(dto);
|
||||
}
|
||||
|
||||
@Get('servicios_responsable')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
async obtenerServiciosResponsable(@Query() dto: ServiciosResponsableDto) {
|
||||
return await this.servicioService.obtenerServiciosResponsable(dto);
|
||||
}
|
||||
|
||||
@Get('admin/:idServicio')
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
async obtenerAdmin(@Param('idServicio') idServicio: number) {
|
||||
|
||||
Reference in New Issue
Block a user