Skip to content

Commit

Permalink
fix: RequestBody 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Apr 7, 2024
1 parent 81b074e commit 5d1f02c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -14,7 +15,7 @@ public class TimeController {
private final TimeService timeService;

@PostMapping("/time")
public ResponseEntity<Void> setServerTime(final TimeRequest timeRequest) {
public ResponseEntity<Void> setServerTime(@RequestBody final TimeRequest timeRequest) {
timeService.setServerTime(timeRequest.localDate());
return ResponseEntity.ok().build();
}
Expand Down

0 comments on commit 5d1f02c

Please sign in to comment.