IRouterSettings Interface

Module
import { IRouterSettings } from "@tsed/common"
Source/packages/common/src/config/interfaces/IServerSettings.ts

Overview

interface IRouterSettings {
    caseSensitive?: boolean;
    mergeParams?: boolean;
    strict?: boolean;
}

Members

caseSensitive?: boolean

Disabled by default, treating “/Foo” and “/foo” as the same.


mergeParams?: boolean

Preserve the req.params values from the parent router. If the parent and the child have conflicting param names, the child’s value take precedence. | false


strict?: boolean

Enable strict routing. | Disabled by default, “/foo” and “/foo/” are treated the same by the router.