Se corrigió envio de correos y creacion de controller servicio
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user