Skip to content

Commit

Permalink
!BREAKING CHANGE: HttpCode 적용 - #123
Browse files Browse the repository at this point in the history
- login, logout은 POST지만 리소스가 생성된 것이 아니기 때문에 200 적용
  • Loading branch information
Dh3356 committed Oct 18, 2023
1 parent cf97ec2 commit 948c74e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class AuthController {
}

@Post('/login')
@HttpCode(200)
async login(
@Body() loginDto: LoginDto,
@Res({ passthrough: true }) response: Response,
Expand All @@ -32,6 +33,7 @@ export class AuthController {
}
@UseGuards(JwtAuthGuard)
@Post('/logout')
@HttpCode(200)
logout(@Res({ passthrough: true }) res: Response): ResponseDto {
return this.authService.logout(res);
}
Expand Down

0 comments on commit 948c74e

Please sign in to comment.