Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rutt/mod.ts>InternalRoutes

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
Latest
type alias InternalRoutes
import { type InternalRoutes } from "https://deno.land/x/rutt@0.3.0/mod.ts";

An array of internal route objects which the routes record is mapped into. This array is used internally in the router function and can even be passed directly to it if you do not wish to use the routes record or want more fine grained control over matches, for example by using a RegExp pattern instead of a URLPattern.

Type Parameters

optional
T = { }
definition: InternalRoute<T>[]