Skip to content

Commit

Permalink
fix: header 요청 변경 - #115
Browse files Browse the repository at this point in the history
  • Loading branch information
sjk4618 committed Jan 21, 2025
1 parent 72579a5 commit 3e7f247
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ResponseEntity<BaseResponse<?>> getPopularCakeLikedByUser(
@PostMapping("/{cakeId}")
public ResponseEntity<BaseResponse<?>> postCakeLikes(
@PathVariable(value = "cakeId") final Long cakeId,
@RequestHeader final Long userId
@UserId final Long userId
) {
cakeLikesService.postCakeLike(cakeId, userId);
return ApiResponseUtil.success(SuccessCode.CREATED);
Expand All @@ -52,7 +52,7 @@ public ResponseEntity<BaseResponse<?>> postCakeLikes(
@DeleteMapping("/{cakeId}")
public ResponseEntity<BaseResponse<?>> deleteCakeLikes(
@PathVariable(value = "cakeId") final long cakeId,
@RequestHeader final long userId
@UserId final long userId
) {
cakeLikesService.deleteCakeLikes(cakeId, userId);
return ApiResponseUtil.success(SuccessCode.OK);
Expand Down

0 comments on commit 3e7f247

Please sign in to comment.