Spaces:
Sleeping
Sleeping
| import { Controller, Post, Body } from '@nestjs/common'; | |
| import { AuthService } from './auth.service'; | |
| ('auth') | |
| export class AuthController { | |
| constructor(private readonly authService: AuthService) {} | |
| ('login') | |
| async login(() body: { username: string; password: string }) { | |
| return this.authService.login(body.username, body.password); | |
| } | |
| } | |