Newer
Older
import { Body, Controller, Post } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthService } from './auth.service';
@Controller('auth')
export class AuthController {
constructor(private authService: AuthService) {}
@Post('login')
@Post('resendEmail')
async resendEmail(@Body() loginDto: LoginDto) {
return this.authService.resendEmail(loginDto);
}