URLRouter.enableRootDir

Controls the computation of the "routerRootDir" parameter.

This parameter is available as req.params["routerRootDir"] and contains the relative path to the base path of the router. The base path is determined by the prefix property.

Note that this feature currently is requires dynamic memory allocations and is opt-in for this reason.

class URLRouter
@safe @property
void
enableRootDir
(
bool enable
)

Meta