fix: 게시판 코드 기반 조회 라우트 추가

- BoardController에 showByCode(string $code) 메서드 추가
- GET /api/v1/boards/{code} 라우트 등록
- 기존 ID 기반 조회와 코드 기반 조회 분리

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-27 15:24:35 +09:00
parent dd8a744d12
commit a9cdf004e3
2 changed files with 19 additions and 0 deletions

View File

@@ -106,6 +106,22 @@ public function tenantBoards()
}, __('message.fetched'));
}
/**
* 게시판 상세 조회 (코드 기반)
*/
public function showByCode(string $code)
{
return ApiResponse::handle(function () use ($code) {
$board = $this->boardService->getBoardByCode($code);
if (! $board) {
abort(404, __('error.board.not_found'));
}
return $board;
}, __('message.fetched'));
}
/**
* 게시판 필드 목록 조회
*/