Skip to content

Commit

Permalink
마일스톤 수정 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed May 22, 2024
1 parent b6bdeae commit d89f2f5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public List<MilestoneListResponse> milestoneList() {

@Authenticate
@PostMapping
public Milestone createMilestone(@RequestBody MilestoneMakeRequest milestoneMakeRequest, @AuthenticatedUserId String userId)
public MilestoneListResponse createMilestone(@RequestBody MilestoneMakeRequest milestoneMakeRequest, @AuthenticatedUserId String userId)
throws IllegalArgumentException {
return milestoneService.createMilestone(milestoneMakeRequest.name(), milestoneMakeRequest.description(),
milestoneMakeRequest.deadline(), userId);
return MilestoneListResponse.of(milestoneService.createMilestone(milestoneMakeRequest.name(), milestoneMakeRequest.description(),
milestoneMakeRequest.deadline(), userId));
}

@Authenticate
Expand Down

0 comments on commit d89f2f5

Please sign in to comment.