From 33ed51072444fa91183b2746ccc4e5e04524eab2 Mon Sep 17 00:00:00 2001 From: Seoyoung2222 Date: Tue, 26 Nov 2024 15:19:45 +0900 Subject: [PATCH] =?UTF-8?q?BE:=20[refactor]=20=EA=B2=8C=EC=8B=9C=EA=B8=80?= =?UTF-8?q?=20=EC=9E=91=EC=84=B1=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#83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crew/post/notice/controller/NoticePostController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/notice/controller/NoticePostController.java b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/notice/controller/NoticePostController.java index 8a41e9f..2b05958 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/notice/controller/NoticePostController.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/crew/post/notice/controller/NoticePostController.java @@ -10,13 +10,13 @@ import org.springframework.web.bind.annotation.*; @RestController -@RequestMapping("/crew/{crewId}") +@RequestMapping("/crew/{crewId}/notice") @RequiredArgsConstructor public class NoticePostController { private final NoticePostCommandService noticePostCommandService; private final AuthCommandService authCommandService; - @PostMapping("/notice") + @PostMapping() public ResponseEntity createNoticePost(@PathVariable Long crewId, @RequestBody NoticePostCreateRequestDto requestDto) { User currentUser = authCommandService.getCurrentUser(); noticePostCommandService.createNoticePost(crewId, currentUser, requestDto);