diff --git a/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java b/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java index 69902dfa6..4757f1d22 100644 --- a/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java +++ b/src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java @@ -24,11 +24,10 @@ @Tag(name = "Recruit Board Search API", description = "봉사 활동 모집 검색 관련 API") @RequiredArgsConstructor -@RequestMapping("/api_v1") +@RequestMapping("/api/v1") @RestController public class RecruitBoardSearchApiController { - private final RecruitBoardQueryUseCase recruitBoardQueryUseCase; private final RecruitBoardDocumentUseCase recruitBoardDocumentUseCase; @GetMapping("/recruit-boards/search") diff --git a/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java b/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java index 9f670c1e9..36b61fbb2 100644 --- a/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java +++ b/src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java @@ -45,7 +45,7 @@ void getAllBySearch() throws Exception { // when // then - mockMvc.perform(get("/api_v1/recruit-boards/search") + mockMvc.perform(get("/api/v1/recruit-boards/search") .param("keyword", "volunteer") .param("category", ADMINISTRATIVE_SUPPORT.name()) .accept(MediaType.APPLICATION_JSON)) @@ -68,7 +68,7 @@ void getNearby() throws Exception { // when // then - mockMvc.perform(get("/api_v1/recruit-boards/nearby") + mockMvc.perform(get("/api/v1/recruit-boards/nearby") .param("latitude", "37.5665") .param("longitude", "126.9780") .param("radius", "10")