Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.3/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>[]