Skip to content

Commit

Permalink
fix(update): MatchController update request body annotation added
Browse files Browse the repository at this point in the history
  • Loading branch information
discphy committed Jun 21, 2023
1 parent 2453285 commit a46a9a7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ public class MatchController {
private final MatchService matchService;

@PostMapping
public BaseResponse<MatchResponse> create(MatchCreateRequest request) {
public BaseResponse<MatchResponse> create(@RequestBody MatchCreateRequest request) {
return new BaseResponse<>(of(matchService.create(request)));
}

@PutMapping("/{id}")
public BaseResponse<MatchResponse> update(@PathVariable(name = "id") Long id, MatchUpdateRequest request) {
public BaseResponse<MatchResponse> update(@PathVariable(name = "id") Long id,
@RequestBody MatchUpdateRequest request) {
return new BaseResponse<>(of(matchService.update(id, request)));
}

Expand Down

0 comments on commit a46a9a7

Please sign in to comment.