"inicialización"
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
|
||||
import { SeccionService } from './seccion.service';
|
||||
import { CreateSeccionDto } from './dto/create-seccion.dto';
|
||||
import { UpdateSeccionDto } from './dto/update-seccion.dto';
|
||||
|
||||
@Controller('seccion')
|
||||
export class SeccionController {
|
||||
constructor(private readonly seccionService: SeccionService) {}
|
||||
|
||||
@Post()
|
||||
create(@Body() createSeccionDto: CreateSeccionDto) {
|
||||
return this.seccionService.create(createSeccionDto);
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.seccionService.findAll();
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.seccionService.findOne(+id);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() updateSeccionDto: UpdateSeccionDto) {
|
||||
return this.seccionService.update(+id, updateSeccionDto);
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.seccionService.remove(+id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user