Se corrigió envio de correos y creacion de controller servicio

This commit is contained in:
2025-10-21 14:54:31 -06:00
parent 86b0096350
commit de24bdeec0
11 changed files with 709 additions and 432 deletions
+9 -26
View File
@@ -1,4 +1,12 @@
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
} from '@nestjs/common';
import { StatusService } from './status.service';
import { CreateStatusDto } from './dto/create-status.dto';
import { UpdateStatusDto } from './dto/update-status.dto';
@@ -6,29 +14,4 @@ import { UpdateStatusDto } from './dto/update-status.dto';
@Controller('status')
export class StatusController {
constructor(private readonly statusService: StatusService) {}
@Post()
create(@Body() createStatusDto: CreateStatusDto) {
return this.statusService.create(createStatusDto);
}
@Get()
findAll() {
return this.statusService.findAll();
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.statusService.findOne(+id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateStatusDto: UpdateStatusDto) {
return this.statusService.update(+id, updateStatusDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.statusService.remove(+id);
}
}
+1 -21
View File
@@ -3,24 +3,4 @@ import { CreateStatusDto } from './dto/create-status.dto';
import { UpdateStatusDto } from './dto/update-status.dto';
@Injectable()
export class StatusService {
create(createStatusDto: CreateStatusDto) {
return 'This action adds a new status';
}
findAll() {
return `This action returns all status`;
}
findOne(id: number) {
return `This action returns a #${id} status`;
}
update(id: number, updateStatusDto: UpdateStatusDto) {
return `This action updates a #${id} status`;
}
remove(id: number) {
return `This action removes a #${id} status`;
}
}
export class StatusService {}