Skip to main content

useParameters

@webda/core


Function: useParameters()

useParameters(): object

Defined in: packages/core/src/application/hooks.ts:62

Get the current application parameters from the active configuration

Returns​

the result

apiUrl?​

optional apiUrl?: string

Define the api url

metrics?​

optional metrics?: false | { config?: {[key: string]: any; }; labels?: {[key: string]: string; }; prefix?: string; }

Define metrics

static?​

optional static?: StaticWebsite

Serve statically a website

website?​

optional website?: string | string[]

Allow you to authorize one or several websites If you use "*" then the API is open to direct call and any origins You can also serve one static website by having a

WebsiteOriginFilter