Function dispatchByName

  • Dispatches request processing by route entry name.

    Builds a route processing handler that selects a route handler to dispatch to accordingly to the name of the first route entry.

    Target route handler receives a route tail without first entry.

    Type Parameters

    • TMeans extends RouterMeans<URLRoute>

      Supported route processing means.

    Parameters

    • names: DispatchNames<TMeans>

      A map of request processing handlers for corresponding route entry names.

    Returns RequestHandler<TMeans>

    New route processing handler.

Generated using TypeDoc