added new Ep
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
|
||||
import { Controller, Get, Body, Patch, Param } from '@nestjs/common';
|
||||
import { ProgramaEquipoService } from './programa_equipo.service';
|
||||
import { CreateProgramaEquipoDto } from './dto/create-programa_equipo.dto';
|
||||
import { UpdateProgramaEquipoDto } from './dto/update-programa_equipo.dto';
|
||||
|
||||
@Controller('programa-equipo')
|
||||
export class ProgramaEquipoController {
|
||||
constructor(private readonly programaEquipoService: ProgramaEquipoService) {}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.programaEquipoService.findAll();
|
||||
@Get('programas/:id')
|
||||
findAllProgramByNumber(@Param('id') id: number) {
|
||||
return this.programaEquipoService.findAllProgramByNumber(+id);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
@@ -18,7 +17,10 @@ export class ProgramaEquipoController {
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() updateProgramaEquipoDto: UpdateProgramaEquipoDto) {
|
||||
update(
|
||||
@Param('id') id: string,
|
||||
@Body() updateProgramaEquipoDto: UpdateProgramaEquipoDto,
|
||||
) {
|
||||
return this.programaEquipoService.update(+id, updateProgramaEquipoDto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user