Skip to content

Commit a75f8ad

Browse files
authored
fix: 봉사활동 모집글 엔드포인트 prefix 수정 (#230)
* chore(search): /api/v1 prefix 변경 * test(search): /api/v1 prefix 변경
1 parent 34c210f commit a75f8ad

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424

2525
@Tag(name = "Recruit Board Search API", description = "봉사 활동 모집 검색 관련 API")
2626
@RequiredArgsConstructor
27-
@RequestMapping("/api_v1")
27+
@RequestMapping("/api/v1")
2828
@RestController
2929
public class RecruitBoardSearchApiController {
3030

31-
private final RecruitBoardQueryUseCase recruitBoardQueryUseCase;
3231
private final RecruitBoardDocumentUseCase recruitBoardDocumentUseCase;
3332

3433
@GetMapping("/recruit-boards/search")

src/test/java/com/somemore/recruitboard/controller/RecruitBoardSearchApiControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void getAllBySearch() throws Exception {
4545

4646
// when
4747
// then
48-
mockMvc.perform(get("/api_v1/recruit-boards/search")
48+
mockMvc.perform(get("/api/v1/recruit-boards/search")
4949
.param("keyword", "volunteer")
5050
.param("category", ADMINISTRATIVE_SUPPORT.name())
5151
.accept(MediaType.APPLICATION_JSON))
@@ -68,7 +68,7 @@ void getNearby() throws Exception {
6868

6969
// when
7070
// then
71-
mockMvc.perform(get("/api_v1/recruit-boards/nearby")
71+
mockMvc.perform(get("/api/v1/recruit-boards/nearby")
7272
.param("latitude", "37.5665")
7373
.param("longitude", "126.9780")
7474
.param("radius", "10")

0 commit comments

Comments
 (0)