Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/endofunctor/components/http/types.ts>FunRouterOptions

๐ŸŒ Vixeny: A runtime-agnostic, performance-centric library championing functional purity for modern web development.
Go to Latest
type alias FunRouterOptions
import { type FunRouterOptions } from "https://deno.land/x/endofunctor@v0.0.922/components/http/types.ts";

Options for the router, it is optional

import vixeny from "vixeny/fun"
import pettitions from "./someWhere"
vixeny({
 hasName: "http://127.0.0.1:8080/",
 404: r => new Response("Insert Not Found"),
 405: r => new Response("Insert Bad Method"),
 //default
 paramsStartsWith: ":"
})(...pettions)
definition: { hasName?: string; paramsStartsWith?: string; readonly enableLiveReloading?: true; 404?: (x: Request) => Response; 405?: (x: Request) => Response; readonly cyclePlugin?: CyclePluginMap; }