Interface DefaultRoute<TMeans, TRoute>

Router configuration with default route builder.

Type Parameters

  • TMeans = HttpMeans

    A type of incoming request processing means.

  • TRoute extends PathRoute = URLRoute

    Supported route type.

Hierarchy

  • Base<TMeans, TRoute>
    • DefaultRoute

Properties

Methods

Properties

buildRoute?: undefined

Methods

  • A parser of route pattern string.

    The this parameter is bound to current request processing means.

    Parameters

    • pattern: string

      Pattern string in supported format.

    • context: RequestContext<TMeans & RouterMeans<TRoute>>

      Current request processing context.

    Returns RoutePattern<TRoute>

    Default

    Supports patterns in simple format (simpleRoutePattern()).

Generated using TypeDoc