Skip to content

Commit

Permalink
Merge pull request #88 from Modagbul/fix/auth
Browse files Browse the repository at this point in the history
feat: 회원가입 여부 확인 추가
  • Loading branch information
minsu20 authored Nov 26, 2023
2 parents 0b663ec + 5ab75be commit 26c851c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ public class MyPageController {
private final AlarmUseCase alarmUseCase;
private final GetMyPageUseCase getMyPageUseCase;

/**
* 사용자 회원가입 여부
* [GET] api/mypage/test
* 작성자: 김민수
*/
@GetMapping("/test")
public ResponseEntity<SuccessResponse> test(@AuthenticationPrincipal User user){
return ResponseEntity.ok(SuccessResponse.create(TEST_SIGNUP_SUCCESS.getMessage()));
}
/**
* 로그아웃
* [POST] api/mypage/signOut
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@Getter
@RequiredArgsConstructor
public enum MypageResponseMessage {
TEST_SIGNUP_SUCCESS("회원가입이 되었습니다."),
SIGN_OUT_SUCCESS("로그아웃을 했습니다"),
WITHDRAWAL_SUCCESS("회원탈퇴를 했습니다"),
GET_MYPAGE_SUCCESS("마이페이지를 조회했습니다"),
Expand Down

0 comments on commit 26c851c

Please sign in to comment.