From 5e8b9b7647cdf6115a965a7ef20c15d926c3bd30 Mon Sep 17 00:00:00 2001 From: Hyosik Philip Joo Date: Mon, 25 Mar 2024 22:42:46 +0900 Subject: [PATCH] =?UTF-8?q?[BUGFIX]=20/community=20=EC=82=B0=ED=95=98=20?= =?UTF-8?q?=EC=97=94=EB=93=9C=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EB=A6=AC?= =?UTF-8?q?=EC=86=8C=EC=8A=A4=EB=AA=85=20=EB=B3=B5=EC=88=98=ED=98=95?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(#340)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [RENAME] community category 엔드포인트 복수형인 categories로 변경 * [RENAME] 커뮤니티 카테고리 전체 조회 파일 명 복수형으로 변경 * [RENAME] community report 엔드포인트 복수형인 reports로 변경 * [DOCS] fix PR 탬플릿 bugfix로 변경 --- .github/ISSUE_TEMPLATE/{-fix-.md => -bugfix-.md} | 2 +- ...{communityCategoryGET.js => communityCategoriesGET.js} | 2 +- .../api/routes/community/communityCategoryPostsGET.js | 2 +- functions/api/routes/community/communityReportPOST.js | 2 +- functions/api/routes/community/index.js | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) rename .github/ISSUE_TEMPLATE/{-fix-.md => -bugfix-.md} (89%) rename functions/api/routes/community/{communityCategoryGET.js => communityCategoriesGET.js} (75%) diff --git a/.github/ISSUE_TEMPLATE/-fix-.md b/.github/ISSUE_TEMPLATE/-bugfix-.md similarity index 89% rename from .github/ISSUE_TEMPLATE/-fix-.md rename to .github/ISSUE_TEMPLATE/-bugfix-.md index 1a8f141..d39ae92 100644 --- a/.github/ISSUE_TEMPLATE/-fix-.md +++ b/.github/ISSUE_TEMPLATE/-bugfix-.md @@ -1,5 +1,5 @@ --- -name: "[FIX]" +name: "[BUGFIX]" about: Describe this issue template's purpose here. title: '' labels: '' diff --git a/functions/api/routes/community/communityCategoryGET.js b/functions/api/routes/community/communityCategoriesGET.js similarity index 75% rename from functions/api/routes/community/communityCategoryGET.js rename to functions/api/routes/community/communityCategoriesGET.js index 455b688..2873766 100644 --- a/functions/api/routes/community/communityCategoryGET.js +++ b/functions/api/routes/community/communityCategoriesGET.js @@ -1,5 +1,5 @@ /** - * @route GET /community/category + * @route GET /community/categories * @desc 커뮤니티 카테고리 조회 * @access Public */ diff --git a/functions/api/routes/community/communityCategoryPostsGET.js b/functions/api/routes/community/communityCategoryPostsGET.js index 0248689..a90d369 100644 --- a/functions/api/routes/community/communityCategoryPostsGET.js +++ b/functions/api/routes/community/communityCategoryPostsGET.js @@ -1,5 +1,5 @@ /** - * @route GET /community/category/:communityCategoryId + * @route GET /community/categories/:communityCategoryId * @desc 커뮤니티 카테고리별 게시글 조회 * @access Private */ diff --git a/functions/api/routes/community/communityReportPOST.js b/functions/api/routes/community/communityReportPOST.js index 6e7abf6..83bb8c2 100644 --- a/functions/api/routes/community/communityReportPOST.js +++ b/functions/api/routes/community/communityReportPOST.js @@ -1,5 +1,5 @@ /** - * @route POST /community/report + * @route POST /community/reports * @desc 커뮤니티 게시글 신고 * @access Private */ diff --git a/functions/api/routes/community/index.js b/functions/api/routes/community/index.js index 60507cc..e8a4243 100644 --- a/functions/api/routes/community/index.js +++ b/functions/api/routes/community/index.js @@ -3,8 +3,8 @@ const router = express.Router(); const { checkUser } = require('../../../middlewares/auth'); router.get( - '/category', - require('./communityCategoryGET'), + '/categories', + require('./communityCategoriesGET'), /** * #swagger.summary = "커뮤니티 카테고리 전체 조회" * #swagger.responses[200] = { @@ -21,7 +21,7 @@ router.get( ); router.get( - '/category/:communityCategoryId', + '/categories/:communityCategoryId', checkUser, require('./communityCategoryPostsGET'), /** @@ -144,7 +144,7 @@ router.post( ); router.post( - '/report', + '/reports', checkUser, require('./communityReportPOST'), /**