programa listo

This commit is contained in:
xXpuma99Xx
2022-04-20 09:48:21 -05:00
parent cd0674817f
commit 2845660f05
3 changed files with 32 additions and 3 deletions
+10 -2
View File
@@ -1,10 +1,18 @@
import { Controller, Get } from '@nestjs/common';
import { Body, Controller, Get, Post } from '@nestjs/common';
import { ProgramaService } from './programa.service';
import { ProgramaCreateDto } from './dto/programa-create.dto';
@Controller('programa')
export class ProgramaController {
constructor(private programaService: ProgramaService) {}
@Post()
create(@Body() body: ProgramaCreateDto) {
return this.programaService.create(body.programa);
}
@Get()
get() {}
get() {
return this.programaService.findAll();
}
}