Skip to content

basalt / tenancy/src / isTenantRequired

Function: isTenantRequired() ​

> isTenantRequired(required, url, meta?): boolean

Defined in: tenancy/src/index.ts:522

Whether this request must carry a tenant.

Exported for tests; the path is compared without its query string, so /health still matches /health?probe=1.

Parameters ​

required ​

boolean | { except: (string | RegExp)[]; } | undefined

url ​

string | undefined

meta? ​

Record<string, unknown>

Returns ​

boolean

Released under the MIT License.