import { type Route } from "https://deno.land/x/oak@v17.1.3/router.ts";
The internal abstraction of a route used by the oak Router
.
Type Parameters
optional
P extends RouteParams<R> = RouteParams<R>optional
S extends State = Record<string, any>Properties
methods: HTTPMethods[]
The HTTP methods that this route handles.
middleware: RouterMiddleware<R, P, S>[]
The middleware that will be applied to this route.
paramNames: (keyof P)[]
The parameters that are identified in the route that will be parsed out on matched requests.