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

x/fresh/src/server/deps.ts>rutt.InternalRoutes

The next-gen web framework.
Extremely Popular
Go to Latest
type alias rutt.InternalRoutes
import { type rutt } from "https://deno.land/x/fresh@1.1.1/src/server/deps.ts";
const { InternalRoutes } = rutt;

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>[]