diff --git a/src/main/java/org/hankki/hankkiserver/api/store/controller/StoreController.java b/src/main/java/org/hankki/hankkiserver/api/store/controller/StoreController.java index e234d143..873d50f7 100644 --- a/src/main/java/org/hankki/hankkiserver/api/store/controller/StoreController.java +++ b/src/main/java/org/hankki/hankkiserver/api/store/controller/StoreController.java @@ -50,12 +50,12 @@ public HankkiResponse getPrices() { return HankkiResponse.success(CommonSuccessCode.OK, storeQueryService.getPriceCategories()); } - @PostMapping("/stores/{storeId}/heart") + @PostMapping("/stores/{storeId}/hearts") public HankkiResponse createHeartStore(@UserId Long userId, @PathVariable Long storeId) { return HankkiResponse.success(CommonSuccessCode.CREATED, heartCommandService.createHeart(StorePostCommand.of(userId, storeId))); } - @DeleteMapping("/stores/{storeId}/heart") + @DeleteMapping("/stores/{storeId}/hearts") public HankkiResponse deleteHeartStore(@UserId Long userId, @PathVariable Long storeId) { return HankkiResponse.success(CommonSuccessCode.NO_CONTENT, heartCommandService.deleteHeart(StoreDeleteCommand.of(userId, storeId))); }