diff --git a/src/main/java/ollie/wecare/challenge/controller/ChallengeController.java b/src/main/java/ollie/wecare/challenge/controller/ChallengeController.java index 0bf8d98..4483ed3 100644 --- a/src/main/java/ollie/wecare/challenge/controller/ChallengeController.java +++ b/src/main/java/ollie/wecare/challenge/controller/ChallengeController.java @@ -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; @@ -16,6 +17,7 @@ @RestController @RequestMapping(challenge) @RequiredArgsConstructor +@Slf4j public class ChallengeController { private final ChallengeService challengeService; @@ -66,7 +68,7 @@ public BaseResponse participateChallenge(@RequestBody PostChallengeReq p * */ @GetMapping("/search") @ResponseBody - public BaseResponse> getChallenges(@RequestParam(value = "searhWord", defaultValue = "", required = false) String searchWord)throws BaseException { + public BaseResponse> getChallenges(@RequestParam(value = "searchWord", defaultValue = "", required = false) String searchWord)throws BaseException { return new BaseResponse<>(challengeService.getChallenges(searchWord)); }