Skip to content

Commit

Permalink
[fix] 팜클럽 목록 검색 메서드 변경 get -> post
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchoGreenT committed Nov 18, 2023
1 parent 28a18ae commit 0e56f0d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ public BaseResponseDto<?> createRegistration(

@PostMapping("/mission")
public BaseResponseDto<?> createMissionPost(
@RequestHeader("user") Long userId,
@RequestPart("content") CreateMissionPostRequestDto requestDto,
@RequestPart("image") MultipartFile image
) {
return BaseResponseDto.of(SuccessMessage.CREATED, missionPostService.createMissionPost(requestDto, image));
return BaseResponseDto.of(SuccessMessage.CREATED, missionPostService.createMissionPost(userId, requestDto, image));
}

@GetMapping("")
@PostMapping("/search")
public BaseResponseDto<?> searchChallengeList(
@RequestBody SearchChallengeListRequestDto requestDto
) {
Expand Down

0 comments on commit 0e56f0d

Please sign in to comment.