Skip to content

Commit 5f1474a

Browse files
authored
refactor: 회원 탈퇴 API HTTP Method를 PATCH에서 DELETE로 변경 (#311)
* refactor: 회원 탈퇴 API HTTP Method를 PATCH에서 DELETE로 변경 * chore: 불필요한 import 제거
1 parent f9e05b0 commit 5f1474a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/example/solidconnection/auth/controller/AuthController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import lombok.RequiredArgsConstructor;
2727
import org.springframework.http.ResponseEntity;
2828
import org.springframework.security.core.Authentication;
29-
import org.springframework.web.bind.annotation.PatchMapping;
29+
import org.springframework.web.bind.annotation.DeleteMapping;
3030
import org.springframework.web.bind.annotation.PostMapping;
3131
import org.springframework.web.bind.annotation.RequestBody;
3232
import org.springframework.web.bind.annotation.RequestMapping;
@@ -102,7 +102,7 @@ public ResponseEntity<Void> signOut(
102102
return ResponseEntity.ok().build();
103103
}
104104

105-
@PatchMapping("/quit")
105+
@DeleteMapping("/quit")
106106
public ResponseEntity<Void> quit(
107107
@AuthorizedUser SiteUser siteUser,
108108
Authentication authentication // todo: #299를 작업하며 인자를 (Authentication authentication)만 받도록 수정해야 함

0 commit comments

Comments
 (0)