Back to Pocketbase

Function static

static/jsvm/functions/_apis.static.html

latest742 B
Original Source

Function static

  • static(dir, indexFallback): ((e) => void)

Route handler to serve static directory content (html, js, css, etc.).

If a file resource is missing and indexFallback is set, the request will be forwarded to the base index.html (useful for SPA).

Parameters

dir: string
indexFallback: boolean

Returns ((e) => void)

    • (e): void

Parameters

  - 
e: RequestEvent

Returns void

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc