import { Router } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/router.ts?p=prototype.use&s=Router";
Register middleware to be used on every matched route.
Type Parameters
optional
P extends RouteParams<string> = RouteParams<string>[src]Parameters
middleware: RouterMiddleware<string, P, S>[src]
...middlewares: RouterMiddleware<string, P, S>[][src]
Register middleware to be used on every route that matches the supplied
path
.
Type Parameters
R extends string[src]
optional
P extends RouteParams<R> = RouteParams<R>[src]Register middleware to be used on every route that matches the supplied
path
with explicit path parameters.
Type Parameters
P extends RouteParams<string>[src]
Parameters
path: string[src]
middleware: RouterMiddleware<string, P, S>[src]
...middlewares: RouterMiddleware<string, P, S>[][src]
Type Parameters
optional
P extends RouteParams<string> = RouteParams<string>[src]Parameters
path: string[][src]
middleware: RouterMiddleware<string, P, S>[src]
...middlewares: RouterMiddleware<string, P, S>[][src]