ui/server/src/storyFetchApi
(design: docs/design/ia-five-screens.md 9.3, 9.6, 9.6b) -- the HTTP surface for StoryApi.fetch(url): POST /api/story/fetch one guarded fetch, strategy chosen per link, consent enforced first GET /api/story/consent t...
Cockpit server, next. Source: ui/server/src/storyFetchApi.mjs.
Functions#
createStoryFetchRouter()#
createStoryFetchRouter(
deps?):any
Defined in: ui/server/src/storyFetchApi.mjs:37
Parameters#
deps?
allowHosts?
string[] = DEFAULT_STORY_FETCH_HOSTS
clientOrigin?
string
getRoot
() => { ok: true; root: string; } | { body?: any; ok: false; status?: number; }
now?
() => string
safeFetchImpl?
Function
stateDir?
string
Returns#
any