import { Controller , Post , Body } from '@nestjs/common' ; import { LoginService } from './login.service' ; import { LoginDto } from '../login/dto/login.dto' ; @ Controller ( 'auth/login' ) export class LoginController { constructor ( private readonly loginService ) { } @ Post ( ) public async login ( @ Body ( ) loginDto ) { return await this . loginService . login ( loginDto ) ; } }