AGENT SKILL
data-fetching
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-10
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
Data fetching (canonical)
Use only src/shared/http/client.ts:
import { api } from "../../../shared/http/client.js";
const items = await api.get<Request[]>("/api/requests");
- Set user via
setCurrentUserId/X-User-Idheader handled by client. - Do not add raw
fetch, axios, or new hooks for HTTP. - List filters are query strings on
/api/requests.