Skip to content

Commit

Permalink
refactor: 주석 해제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Jul 18, 2024
1 parent cd482b4 commit 9f07796
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import leets.weeth.domain.notice.service.NoticeService;
import leets.weeth.global.auth.annotation.CurrentUser;
import leets.weeth.global.common.error.exception.custom.BusinessLogicException;
import leets.weeth.global.common.error.exception.custom.TypeNotMatchException;
import leets.weeth.global.common.response.CommonResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
Expand Down Expand Up @@ -35,7 +36,7 @@ public CommonResponse<String> createNotice(@RequestBody @Valid RequestNotice req
// 공지사항 세부 조회
@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')")
@GetMapping("/{id}")
public CommonResponse<ResponseNotice> getNotice(@PathVariable Long id) {
public CommonResponse<ResponseNotice> getNotice(@PathVariable Long id) throws TypeNotMatchException {
ResponseNotice responseNotice = noticeService.getNoticeById(id);
return CommonResponse.createSuccess(responseNotice);
}
Expand Down

0 comments on commit 9f07796

Please sign in to comment.