Skip to content

Commit

Permalink
Merge pull request #242 from kakao-tech-campus-2nd-step3/docs/#185-re…
Browse files Browse the repository at this point in the history
…adme

[fix] nickname 변경 pathvariable 사용
  • Loading branch information
BaeJunH0 authored Nov 15, 2024
2 parents b22d349 + 39fcd93 commit 4d600c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -28,7 +28,7 @@ public class UserController implements UserControllerApiSepc {

@PatchMapping("/nickname")
public ResponseEntity<Void> updateNickname(
@RequestBody String nickname
@PathVariable("nickname") String nickname
) {
userService.updateNickname(nickname);
return new ResponseEntity<>(HttpStatus.OK);
Expand Down

0 comments on commit 4d600c8

Please sign in to comment.