Page Contents

Home > @loopback/rest > RequestContext > basePath

RequestContext.basePath property

Get the effective base path of the incoming request. This base path combines baseUrl provided by Express when LB4 handler is mounted on a non-root path, with the basePath value configured at LB4 side.

Signature:

get basePath(): string;