-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sartek430
committed
Oct 25, 2023
1 parent
7d23dbc
commit a120654
Showing
4 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { Body, Controller, Post, HttpCode, HttpStatus } from '@nestjs/common'; | ||
import { Body, Controller, Post, Logger } from '@nestjs/common'; | ||
import { AuthService } from './auth.service'; | ||
import { AuthLoginDto } from './dto/auth-login.dto'; | ||
|
||
@Controller('auth') | ||
@Controller('login') | ||
export class AuthController { | ||
private readonly logger = new Logger(AuthController.name); | ||
constructor(private authService: AuthService) {} | ||
|
||
@HttpCode(HttpStatus.OK) | ||
@Post('login') | ||
signIn(@Body() authLoginDto: AuthLoginDto) { | ||
@Post() | ||
async login(@Body() authLoginDto: AuthLoginDto) { | ||
return this.authService.login(authLoginDto); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters