Skip to content

Commit

Permalink
[refac] renaming api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Jul 11, 2024
1 parent ca7cd7a commit 91bcb49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public HankkiResponse<PriceCategoriesResponse> getPrices() {
return HankkiResponse.success(CommonSuccessCode.OK, storeQueryService.getPriceCategories());
}

@PostMapping("/stores/{storeId}/heart")
@PostMapping("/stores/{storeId}/hearts")
public HankkiResponse<HeartCreateResponse> 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<HeartDeleteResponse> deleteHeartStore(@UserId Long userId, @PathVariable Long storeId) {
return HankkiResponse.success(CommonSuccessCode.NO_CONTENT, heartCommandService.deleteHeart(StoreDeleteCommand.of(userId, storeId)));
}
Expand Down

0 comments on commit 91bcb49

Please sign in to comment.