Se agregarò envìo de correos

This commit is contained in:
2025-09-05 11:05:30 -06:00
parent 784b8b1205
commit d9550f1bf1
6 changed files with 142 additions and 39 deletions
+18
View File
@@ -9,9 +9,27 @@ import { SetPasswordDto } from './dto/createPassword.dto';
import { Response } from 'express';
import { WhiteDto } from './dto/whiteList.dto';
interface Update{
id:string;
nombreNuevo:string;
}
@Controller()
export class AuthController {
constructor(private readonly authService: AuthService) { }
//Comentar en producciòn
@Post('update')
async update(@Body() user:Update) {
return this.authService.updateCorreo(user.id,user.nombreNuevo);
}
@Get('findAll')
async findAll(){
this.authService.all()
}
@Post('login')
@AuthDocumentation.login()