Skip to content

five-on-it / apps/client/src/ui/platform / apiBase

Function: apiBase() ​

apiBase(__namedParameters): string | undefined

Defined in: apps/client/src/ui/platform.ts:306

The API's base URL for a page: its api query parameter, else the address the player set, else the build's, else /api on its own origin; none for a page from a file (the desktop app's) that was given none.

Parameters ​

__namedParameters ​

PlatformSources

Returns ​

string | undefined