Skip to content

Commit

Permalink
fix: 요청 데이터가 맵핑되지 않는 문제 해결
Browse files Browse the repository at this point in the history
Co-authored-by: kunsanglee <[email protected]>
Co-authored-by: Arachneee <[email protected]>
Co-authored-by: khabh <[email protected]>
  • Loading branch information
4 people committed Jul 23, 2024
1 parent ac916e8 commit 32f90c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import server.haengdong.application.EventService;
import server.haengdong.application.response.EventAppResponse;
Expand All @@ -19,7 +20,7 @@ public class EventController {
private final EventService eventService;

@PostMapping("/api/events")
public ResponseEntity<Void> saveEvent(EventSaveRequest request) {
public ResponseEntity<Void> saveEvent(@RequestBody EventSaveRequest request) {
EventAppResponse eventAppResponse = eventService.saveEvent(request.toAppRequest());

return ResponseEntity.ok()
Expand Down

0 comments on commit 32f90c5

Please sign in to comment.