class PathResolver
implements ITenantResolver

Resolves the tenant id from a segment of request.path.

Constructors

PathResolver(options?: PathResolverOptions)

Methods

resolve(request: IRequest): Promise<Option<ITenant>>

Resolve the tenant id from a segment of request.path.

Usage

import { PathResolver } from "multi-tenancy-plugin/src/index.ts";