From 789905b650b090e876fc2f17a64a3902fb87f3cd Mon Sep 17 00:00:00 2001 From: zer0silver Date: Thu, 12 Sep 2024 10:43:22 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=97=94=EB=93=9C=ED=8F=AC=EC=9D=B8?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95=20#145?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/server/capple/config/security/SecurityConfig.java | 6 +++--- .../answerComment/controller/AnswerCommentController.java | 2 +- .../boardComment/controller/BoardCommentController.java | 2 +- .../controller/BoardCommentReportController.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/server/capple/config/security/SecurityConfig.java b/src/main/java/com/server/capple/config/security/SecurityConfig.java index 38ca14ef..12df323a 100644 --- a/src/main/java/com/server/capple/config/security/SecurityConfig.java +++ b/src/main/java/com/server/capple/config/security/SecurityConfig.java @@ -51,14 +51,14 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .requestMatchers("/members/sign-in","/members/sign-up", "/members/local-sign-in", "/token/**", "/members/email/check", "/members/nickname/check", "/members/email/certification", "/members/email/certification/check").permitAll() .requestMatchers("/admin/**", "/members/email/whitelist/register").hasRole(Role.ROLE_ADMIN.getName()) .requestMatchers("/answers","/answers/**").authenticated() - .requestMatchers("/answerComments","/answerComments/**").authenticated() + .requestMatchers("/answer-comments","/answer-comments/**").authenticated() .requestMatchers("/members","/members/**").authenticated() .requestMatchers("/tags","/tags/**").authenticated() .requestMatchers("/questions","/questions/**").authenticated() .requestMatchers("/reports", "/reports/**").authenticated() .requestMatchers("/boards", "/boards/**").authenticated() - .requestMatchers("/boardComments", "/boardComments/**").authenticated() - .requestMatchers("/boardCommentReports", "/boardCommentReports/**").authenticated() + .requestMatchers("/board-comments", "/board-comments/**").authenticated() + .requestMatchers("/reports/board-comments", "/reports/board-comments/**").authenticated() .requestMatchers("/dummy","/dummy/**").hasRole(Role.ROLE_ADMIN.getName()) .anyRequest().denyAll()); http diff --git a/src/main/java/com/server/capple/domain/answerComment/controller/AnswerCommentController.java b/src/main/java/com/server/capple/domain/answerComment/controller/AnswerCommentController.java index 46c4d77b..62da47fc 100644 --- a/src/main/java/com/server/capple/domain/answerComment/controller/AnswerCommentController.java +++ b/src/main/java/com/server/capple/domain/answerComment/controller/AnswerCommentController.java @@ -15,7 +15,7 @@ @Tag(name = "답변 댓글 API", description = "답변 댓글 API입니다.") @RestController @RequiredArgsConstructor -@RequestMapping("/answerComments") +@RequestMapping("/answer-comments") public class AnswerCommentController { private final AnswerCommentService answerCommentService; diff --git a/src/main/java/com/server/capple/domain/boardComment/controller/BoardCommentController.java b/src/main/java/com/server/capple/domain/boardComment/controller/BoardCommentController.java index 12ce6420..1b2330f5 100644 --- a/src/main/java/com/server/capple/domain/boardComment/controller/BoardCommentController.java +++ b/src/main/java/com/server/capple/domain/boardComment/controller/BoardCommentController.java @@ -18,7 +18,7 @@ @Tag(name = "게시글 댓글 API", description = "게시글 댓글 API입니다.") @RestController @RequiredArgsConstructor -@RequestMapping("/boardComments") +@RequestMapping("/board-comments") public class BoardCommentController { private final BoardCommentService boardCommentService; diff --git a/src/main/java/com/server/capple/domain/boardCommentReport/controller/BoardCommentReportController.java b/src/main/java/com/server/capple/domain/boardCommentReport/controller/BoardCommentReportController.java index c4f5ccba..8d50fd3a 100644 --- a/src/main/java/com/server/capple/domain/boardCommentReport/controller/BoardCommentReportController.java +++ b/src/main/java/com/server/capple/domain/boardCommentReport/controller/BoardCommentReportController.java @@ -19,11 +19,11 @@ @Tag(name = "게시판 댓글 신고 API", description = "게시판 댓글 신고 관련 API") @RestController @RequiredArgsConstructor -@RequestMapping("/boardCommentReports") +@RequestMapping("/reports/board-comment") public class BoardCommentReportController { private final BoardCommentReportService boardCommentReportService; - @Operation(summary = "게시판 신고함 작성 API", description = "게시판 신고를 작성합니다.") + @Operation(summary = "게시판 댓글 신고 API", description = "게시판 댓글 신고를 작성합니다.") @ApiResponses(value = { @ApiResponse(responseCode = "COMMON200", description = "성공"), })