Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback


A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
interface Route
import { type Route } from "";

Type Parameters

R extends string
P extends RouteParams<R> = RouteParams<R>
S extends State = Record<string, any>


methods: HTTPMethods[]

The HTTP methods that this route handles.

middleware: RouterMiddleware<R, P, S>[]

The middleware that will be applied to this route.

name: string

An optional name for the route.

options: LayerOptions

Options that were used to create the route.

paramNames: (keyof P)[]

The parameters that are identified in the route that will be parsed out on matched requests.

path: string

The path that this route manages.

regexp: RegExp

The regular expression used for matching and parsing parameters for the route.