diff --git a/src/main/java/team7/inplace/user/presentation/UserController.java b/src/main/java/team7/inplace/user/presentation/UserController.java index 121dedab..13a7986c 100644 --- a/src/main/java/team7/inplace/user/presentation/UserController.java +++ b/src/main/java/team7/inplace/user/presentation/UserController.java @@ -8,7 +8,7 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PatchMapping; -import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import team7.inplace.user.application.UserFacade; @@ -28,7 +28,7 @@ public class UserController implements UserControllerApiSepc { @PatchMapping("/nickname") public ResponseEntity updateNickname( - @RequestBody String nickname + @PathVariable("nickname") String nickname ) { userService.updateNickname(nickname); return new ResponseEntity<>(HttpStatus.OK);