diff --git a/src/main/java/unithon/uniletter/time/controller/TimeController.java b/src/main/java/unithon/uniletter/time/controller/TimeController.java index e91a368..983cdd9 100644 --- a/src/main/java/unithon/uniletter/time/controller/TimeController.java +++ b/src/main/java/unithon/uniletter/time/controller/TimeController.java @@ -3,6 +3,7 @@ import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import unithon.uniletter.time.TimeRequest; import unithon.uniletter.time.service.TimeService; @@ -14,7 +15,7 @@ public class TimeController { private final TimeService timeService; @PostMapping("/time") - public ResponseEntity setServerTime(final TimeRequest timeRequest) { + public ResponseEntity setServerTime(@RequestBody final TimeRequest timeRequest) { timeService.setServerTime(timeRequest.localDate()); return ResponseEntity.ok().build(); }