Routes
import type { Routes } from "https://crux.land/api/get/2KNRVU.ts";
A record of route paths and MatchHandler
s which are called when a match is
found along with it's values.
The route paths follow the path-to-regexp 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 Routes = Record<string, MatchHandler>;
§Type
§
Record<string, MatchHandler>
[src]