Se agregarò envìo de correos
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user