Table of Contents

TTenantMiddleware.BasePath Property

The base path prefix used for path-based tenant extraction.

Remarks

When set, the middleware expects the tenant ID as the first path segment after the base path. For example, with BasePath set to "/api", a request to "/api/tenant1/resource" will extract "tenant1" as the tenant ID and rewrite the URL to "/api/resource".

Syntax

Unit: Sparkle.Middleware.Tenant

property TTenantMiddleware.BasePath: string

See also