Constructors
constructor
- new Router<C>(routeFn: RouteFn<C>, handlers?: Map<string, Middleware<C>>): Router<C>
-
Type parameters
Parameters
-
routeFn: RouteFn<C>
-
handlers: Map<string, Middleware<C>> = ...
Methods
on
-
Parameters
-
route: string
-
Rest ...fns: NonemptyReadonlyArray<Middleware<C>>