feat: add simple login logic

This commit is contained in:
2026-02-18 09:13:23 +03:30
parent b9779f7cb6
commit e657264807
16 changed files with 259 additions and 13 deletions
+19
View File
@@ -0,0 +1,19 @@
import { Body, Controller, HttpCode, Post } from '@nestjs/common';
import { LoginDTO } from './dtos/login.dto';
import { AuthService } from './providers/auth.service';
@Controller('users')
export class AuthController {
constructor(
/**
* Inject Auth Service
*/
private readonly authService: AuthService,
) {}
@Post('login')
@HttpCode(200)
public async logIn(@Body() loginDto: LoginDTO) {
return await this.authService.logIn(loginDto);
}
}