verificacion de ciertos endpoints
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Body, Controller, Get, Post, Query } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { ProgramaService } from './programa.service';
|
||||
import { ProgramaCreateDto } from './dto/programa-create.dto';
|
||||
import { ProgramaDto } from './dto/programa.dto'
|
||||
import {ApiTags} from '@nestjs/swagger'
|
||||
import { ProgramaDto } from './dto/programa.dto';
|
||||
|
||||
@Controller('programa')
|
||||
@ApiTags('programa')
|
||||
@@ -21,6 +21,6 @@ export class ProgramaController {
|
||||
|
||||
@Get('programa')
|
||||
programa(@Query() query: ProgramaDto) {
|
||||
return this.programaService.findById(parseInt(query.id_programa))
|
||||
return this.programaService.findById(parseInt(query.id_programa));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user