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

x/rutt/mod.ts>Routes

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

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 = { }