stripBasePath
function stripBasePath(pathname, basePath): string;Defined in: src/server/base-path.ts:23
Strip the (normalized) base path from a pathname. Returns a path that always
starts with /. If the pathname does not start with the base path it is
returned unchanged (the host framework may already have stripped the mount).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
pathname |
string |
basePath |
string |
Returns
Section titled “Returns”string