내비게이션, 테마 적용
This commit is contained in:
@@ -38,4 +38,24 @@ export const getIssues = async (projectId: string): Promise<Issue[]> => {
|
||||
|
||||
const result = await response.json();
|
||||
return result.items || [];
|
||||
};
|
||||
|
||||
/**
|
||||
* 특정 프로젝트의 단일 이슈 상세 정보를 가져옵니다.
|
||||
* @param projectId 프로젝트 ID
|
||||
* @param issueId 이슈 ID
|
||||
* @returns 이슈 상세 정보 Promise
|
||||
*/
|
||||
export const getIssue = async (
|
||||
projectId: string,
|
||||
issueId: string,
|
||||
): Promise<Issue> => {
|
||||
const url = `/api/projects/${projectId}/issues/${issueId}`;
|
||||
const response = await fetch(url);
|
||||
|
||||
if (!response.ok) {
|
||||
await handleApiError("이슈 상세 정보를 불러오는 데 실패했습니다.", response);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
};
|
||||
Reference in New Issue
Block a user