Skip to content

Commit

Permalink
Merge pull request #63 from team-Ollie/fix/60-searchChallenge
Browse files Browse the repository at this point in the history
#60 fix: ์ฑŒ๋ฆฐ์ง€ ๊ฒ€์ƒ‰ API ํŒŒ๋ผ๋ฏธํ„ฐ ์ˆ˜์ •
  • Loading branch information
Haeun-Y authored Jun 26, 2024
2 parents dae9e1e + 35c479c commit f993bb1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import ollie.wecare.challenge.dto.*;
import ollie.wecare.challenge.service.ChallengeService;
import ollie.wecare.common.base.BaseException;
Expand All @@ -16,6 +17,7 @@
@RestController
@RequestMapping(challenge)
@RequiredArgsConstructor
@Slf4j
public class ChallengeController {

private final ChallengeService challengeService;
Expand Down Expand Up @@ -66,7 +68,7 @@ public BaseResponse<String> participateChallenge(@RequestBody PostChallengeReq p
* */
@GetMapping("/search")
@ResponseBody
public BaseResponse<List<GetChallengesRes>> getChallenges(@RequestParam(value = "searhWord", defaultValue = "", required = false) String searchWord)throws BaseException {
public BaseResponse<List<GetChallengesRes>> getChallenges(@RequestParam(value = "searchWord", defaultValue = "", required = false) String searchWord)throws BaseException {
return new BaseResponse<>(challengeService.getChallenges(searchWord));
}

Expand Down

0 comments on commit f993bb1

Please sign in to comment.