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