Skip to content

Commit

Permalink
♻️ refactor: deleteUser HTTP Method 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinho7 committed May 9, 2024
1 parent f1a4f77 commit 77aee34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public ApiResponse<String> updatePassword(@AuthUser User user,


// Todo : soft delete로 변경 고려
@GetMapping("/delete")
@DeleteMapping("/delete")
public ApiResponse<String> deleteUser(@AuthUser User user) {
accountsService.deleteUser(user);
return ApiResponse.onSuccess("로그아웃이 성공적으로 완료되었습니다.");
return ApiResponse.onSuccess(user.getEmail() + "님의 계정이 성공적으로 탈퇴되었습니다.");
}
}

0 comments on commit 77aee34

Please sign in to comment.