Skip to content

Commit

Permalink
[Fix] 컨트롤러 @PathVariable 참조 문제 해결(#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkonu committed May 17, 2024
1 parent 14a0a58 commit 369ec69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class RoutineController {
@PostMapping("/routine")
public ResponseEntity<BaseResponse<?>> postRoutine(
@RequestHeader(name = "user_id") Long userId,
@RequestParam(name = "exercise_id") Long exerciseId
@RequestParam(name = "exerciseId") Long exerciseId
) {
routineService.createRoutine(userId, exerciseId);

Expand All @@ -30,7 +30,7 @@ public ResponseEntity<BaseResponse<?>> postRoutine(
@PatchMapping("/exercises/{exerciseId}/like")
public ResponseEntity<BaseResponse<?>> patchExerciseLike(
@RequestHeader(name = "user_id") Long userId,
@PathVariable(name = "exercise_id") Long exerciseId
@PathVariable(name = "exerciseId") Long exerciseId
) {

routineService.patchExerciseLike(userId, exerciseId);
Expand All @@ -43,7 +43,7 @@ public ResponseEntity<BaseResponse<?>> patchExerciseLike(
@PatchMapping("/exercises/{exerciseId}/unlike")
public ResponseEntity<BaseResponse<?>> patchExerciseUnLike(
@RequestHeader(name = "user_id") Long userId,
@PathVariable(name = "exercise_id") Long exerciseId
@PathVariable(name = "exerciseId") Long exerciseId
) {

routineService.patchExerciseUnLike(userId, exerciseId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SetController {
@PostMapping("/exercises/{exerciseId}/set")
public ResponseEntity<BaseResponse<?>> postAddSet(
@RequestHeader(name = "user_id") final Long userId,
@PathVariable(name = "exercise_id") final Long exerciseId
@PathVariable(name = "exerciseId") final Long exerciseId
) {
setService.addSet(userId, exerciseId);

Expand All @@ -40,7 +40,7 @@ public ResponseEntity<BaseResponse<?>> postAddSet(
@PutMapping("/exercises/{exerciseId}/set")
public ResponseEntity<BaseResponse<?>> putSetIsDone(
@RequestHeader(name = "user_id") final Long userId,
@PathVariable(name = "exercise_id") final Long exerciseId
@PathVariable(name = "exerciseId") final Long exerciseId
) {
setService.completeSet(userId, exerciseId);

Expand Down

0 comments on commit 369ec69

Please sign in to comment.