generated from pricelees/issue-pr-template
refactor: 로그인 확인 API에서의 불필요한 중복 DB 요청 제거
This commit is contained in:
parent
a70a032946
commit
a6a82d7fd9
@ -33,9 +33,7 @@ class AuthControllerV2(
|
|||||||
override fun checkLogin(
|
override fun checkLogin(
|
||||||
@CurrentUser user: CurrentUserContext,
|
@CurrentUser user: CurrentUserContext,
|
||||||
): ResponseEntity<CommonApiResponse<CurrentUserContext>> {
|
): ResponseEntity<CommonApiResponse<CurrentUserContext>> {
|
||||||
val response = authService.checkLogin(user)
|
return ResponseEntity.ok(CommonApiResponse(user))
|
||||||
|
|
||||||
return ResponseEntity.ok(CommonApiResponse(response))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/logout")
|
@PostMapping("/logout")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user