diff --git a/src/main/java/com/listywave/common/auth/AuthorizationInterceptor.java b/src/main/java/com/listywave/common/auth/AuthorizationInterceptor.java index 79724474..d2d4153e 100644 --- a/src/main/java/com/listywave/common/auth/AuthorizationInterceptor.java +++ b/src/main/java/com/listywave/common/auth/AuthorizationInterceptor.java @@ -21,7 +21,7 @@ public class AuthorizationInterceptor implements HandlerInterceptor { private static final UriAndMethod[] whiteList = { - new UriAndMethod("/lists/recommended", GET), + new UriAndMethod("/lists/recommend", GET), new UriAndMethod("/lists/search", GET), new UriAndMethod("/lists/{listId}/comments", GET), new UriAndMethod("/lists/upload-url", GET), diff --git a/src/main/java/com/listywave/list/presentation/controller/ListController.java b/src/main/java/com/listywave/list/presentation/controller/ListController.java index 70ebab16..639f9175 100644 --- a/src/main/java/com/listywave/list/presentation/controller/ListController.java +++ b/src/main/java/com/listywave/list/presentation/controller/ListController.java @@ -54,7 +54,7 @@ ResponseEntity getListDetail( return ResponseEntity.ok(listDetailResponse); } - @GetMapping("/lists/recommended") + @GetMapping("/lists/recommend") ResponseEntity> getRecommendedLists() { List recommendedLists = listService.getRecommendedLists(); return ResponseEntity.ok().body(recommendedLists); diff --git a/src/test/java/com/listywave/acceptance/list/ListAcceptanceTestHelper.java b/src/test/java/com/listywave/acceptance/list/ListAcceptanceTestHelper.java index 23fd9dde..621dc9a3 100644 --- a/src/test/java/com/listywave/acceptance/list/ListAcceptanceTestHelper.java +++ b/src/test/java/com/listywave/acceptance/list/ListAcceptanceTestHelper.java @@ -183,7 +183,7 @@ public abstract class ListAcceptanceTestHelper { public static ExtractableResponse 추천_리스트_조회_API_호출() { return given() - .when().get("/lists/recommended") + .when().get("/lists/recommend") .then().log().all() .extract(); }