Skip to content

Commit

Permalink
BE: [refactor] 게시글 작성 엔드포인트 수정 CSID-DGU#83
Browse files Browse the repository at this point in the history
  • Loading branch information
Seoyoung2222 committed Nov 26, 2024
1 parent 618f0d1 commit 33ed510
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Long> createNoticePost(@PathVariable Long crewId, @RequestBody NoticePostCreateRequestDto requestDto) {
User currentUser = authCommandService.getCurrentUser();
noticePostCommandService.createNoticePost(crewId, currentUser, requestDto);
Expand Down

0 comments on commit 33ed510

Please sign in to comment.