Skip to content

Commit 8b0ff08

Browse files
committed
chore: 컨트롤러 엔드 포인트 수정
- 기존 RequestMapping을 이용한 전역적인 엔드포인트 적용에서 엔드포인트마다 url을 붙여주는 방식으로 수정
1 parent 2a6358f commit 8b0ff08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/somemore/interestcenter/controller/InterestCenterCommandApiController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
@RequiredArgsConstructor
1515
@RestController
16-
@RequestMapping("/api/interest-center")
1716
@Tag(name = "Interest Center Command API", description = "관심 기관의 등록과 취소 API를 제공합니다")
1817
public class InterestCenterCommandApiController {
1918

2019
private final RegisterInterestCenterUseCase registerInterestCenterUseCase;
2120
private final CancelInterestCenterUseCase cancelInterestCenterUseCase;
2221

2322
@Operation(summary = "관심기관 등록 API")
24-
@PostMapping()
23+
@PostMapping("/api/interest-center")
2524
public ApiResponse<RegisterInterestCenterResponseDto> registerInterestCenter(@Valid @RequestBody RegisterInterestCenterRequestDto requestDto) {
2625

2726
RegisterInterestCenterResponseDto responseDto = registerInterestCenterUseCase.registerInterestCenter(requestDto);
@@ -30,7 +29,7 @@ public ApiResponse<RegisterInterestCenterResponseDto> registerInterestCenter(@Va
3029
}
3130

3231
@Operation(summary = "관심기관 취소 API")
33-
@DeleteMapping("/{interest-center-id}")
32+
@DeleteMapping("/api/interest-center/{interest-center-id}")
3433
public ApiResponse<String> deleteInterestCenter(@PathVariable("interest-center-id") Long interestCenterId) {
3534

3635
cancelInterestCenterUseCase.cancelInterestCenter(interestCenterId);

0 commit comments

Comments
 (0)