forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

getBoardById.ts7 lines, 288 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Board } from "./types";
3
4// One board — a 404 (never 403) for anyone not on it.
5export function getBoardById(id: string, signal?: AbortSignal): Promise<Board> {
6 return client<Board>(`/boards/${encodeURIComponent(id)}`, { signal });
7}