import { Router } from "https://deno.land/x/oak@v17.1.3/router.ts";
Register named middleware for the specified routes when the GET
,
method is requested.
Register middleware for the specified routes when the GET
,
method is requested.
Register middleware for the specified routes when the GET
,
method is requested with explicit path parameters.
Type Parameters
P extends RouteParams<string>
optional
S extends State = RSParameters
pathOrMiddleware: string | RouterMiddleware<string, P, S>
...middleware: RouterMiddleware<string, P, S>[]