From 1dd6003b069cd15424078824d8490f822d114524 Mon Sep 17 00:00:00 2001 From: pparkjs Date: Wed, 30 Oct 2024 22:10:38 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EC=B2=9C=20uri=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/listywave/common/auth/AuthorizationInterceptor.java | 2 +- .../listywave/list/presentation/controller/ListController.java | 2 +- .../com/listywave/acceptance/list/ListAcceptanceTestHelper.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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(); }