This commit is contained in:
TuNombreDeUsuario
2024-06-05 14:35:05 -06:00
parent 0af1c11144
commit 6d47dd3fee
12 changed files with 673 additions and 25 deletions
+14
View File
@@ -0,0 +1,14 @@
import { Body, Controller, Post, HttpCode, HttpStatus } from '@nestjs/common';
import { AuthService } from './auth.service';
@Controller('auth')
export class AuthController {
constructor(private authService: AuthService) {}
@HttpCode(HttpStatus.OK)
@Post('login')
signIn(@Body() signInDto: Record<string, any>) {
return this.authService.signIn(signInDto.username, signInDto.password);
}
}