Skip to content

Commit 0ff4b3b

Browse files
committed
CLAP-148 Feature : 카테고리 삭제 API 수정
<footer> - 관련: #120
1 parent 5fcc496 commit 0ff4b3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/clap/server/adapter/inbound/web/admin/DeleteCategoryController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import lombok.RequiredArgsConstructor;
99
import org.springframework.security.access.annotation.Secured;
1010
import org.springframework.security.core.annotation.AuthenticationPrincipal;
11-
import org.springframework.web.bind.annotation.PatchMapping;
11+
import org.springframework.web.bind.annotation.DeleteMapping;
1212
import org.springframework.web.bind.annotation.PathVariable;
1313
import org.springframework.web.bind.annotation.RequestMapping;
1414

@@ -20,7 +20,7 @@ public class DeleteCategoryController {
2020
private final DeleteCategoryUsecase deleteCategoryUsecase;
2121

2222
@Operation(summary = "카테고리 삭제")
23-
@PatchMapping("/categories/{categoryId}")
23+
@DeleteMapping("/categories/{categoryId}")
2424
@Secured("ROLE_ADMIN")
2525
public void deleteCategory(@AuthenticationPrincipal SecurityUserDetails userInfo, @PathVariable Long categoryId) {
2626
deleteCategoryUsecase.deleteCategory(userInfo.getUserId(), categoryId);

0 commit comments

Comments
 (0)