Skip to content

Commit

Permalink
Merge pull request #99 from CSID-DGU/backend/feature/crew
Browse files Browse the repository at this point in the history
BE: [refactor] 게시글 작성 엔드포인트 수정 #83
  • Loading branch information
Seoyoung2222 authored Nov 26, 2024
2 parents 9ecc3f1 + 33ed510 commit d0768b5
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 d0768b5

Please sign in to comment.