TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/HNU-himematsu/HNU-TimeLetter/llms.txt
Use this file to discover all available pages before exploring further.
/api/content endpoint is the primary data feed for the HNU-TimeLetter interactive map. It returns every campus location pinned on the SVG campus overlay, together with all galgame-style character stories nested under each location. The data is produced by the Feishu sync pipeline and written to src/data/content.json; the endpoint reads that file at request time, so new stories appear immediately after a sync completes — no build or server restart is needed.
Endpoint
Response — 200 OK
Returns a JSON object with a single top-level key,locations, containing an array of LocationPoint objects. Each LocationPoint embeds its own stories array.
Schema
Array of campus location points displayed on the SVG map overlay. Each entry carries its own nested story list.
TypeScript example
Data source
This endpoint reads
src/data/content.json at runtime on every request. The file is generated by the Feishu sync pipeline, which pulls from the Feishu 地点表 (locations table) and 故事表 (stories table) and merges them into a single nested structure.Run npm run sync or trigger a sync from the admin dashboard to refresh the data. No build step and no server restart are required — the updated JSON is served immediately on the next request.| File | Content |
|---|---|
src/config/locations.json | Flat array of location metadata (id, name, x, y) |
src/data/content.json | Merged LocationPoint[] with nested Story[] arrays |
/api/content endpoint serves exclusively from src/data/content.json.