Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat/#90] 회원 탈퇴 API delete 메서드로 변경 #91

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
Expand Down Expand Up @@ -45,7 +45,7 @@ public class AuthController {
ErrorStatus._INTERNAL_SERVER_ERROR
})
@Operation(summary = "토큰 재발급", description = "Refresh Token, Access Token을 재발급합니다.")
@PatchMapping("/reissue")
@PostMapping("/reissue")
public ResponseDto<JwtDto> reissue(@RequestBody RefreshTokenRequest request) {
return ResponseDto.onSuccess(jwtProvider.reissueToken(request));
}
Expand Down Expand Up @@ -83,7 +83,7 @@ public ResponseDto<Boolean> logout(@RequestBody RefreshTokenRequest request) {
ErrorStatus._INTERNAL_SERVER_ERROR
})
@Operation(summary = "회원 탈퇴", description = "회원 탈퇴를 진행합니다.")
@PostMapping("/withdrawal")
@DeleteMapping("/withdrawal")
public ResponseDto<Boolean> withdrawal(@AuthMember Member member) {
return ResponseDto.onSuccess(memberCommandService.withdrawal(member));
}
Expand Down
Loading