wagerkit / backend /src /auth /auth.controller.ts
saadrizvi09
init
b2806e8
raw
history blame contribute delete
373 Bytes
import { Controller, Post, Body } from '@nestjs/common';
import { AuthService } from './auth.service';
@Controller('auth')
export class AuthController {
constructor(private readonly authService: AuthService) {}
@Post('login')
async login(@Body() body: { username: string; password: string }) {
return this.authService.login(body.username, body.password);
}
}