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.InternalRoute

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

The internal route object contains either a RegExp pattern or URLPattern which is matched against the incoming request URL. If a match is found for both the pattern and method the associated MatchHandler is called.

Type Parameters

optional
T = { }
definition: { pattern: RegExp | URLPattern; methods: Record<string, MatchHandler<T>>; }