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

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

A record of route paths and MatchHandlers which are called when a match is found along with it's values.

The route paths follow the URLPattern format with the addition of being able to prefix a route with a method name and the @ sign. For example a route only accepting GET requests would look like: GET@/.

Type Parameters

optional
T = { }
definition: Record<string, MatchHandler<T>>