Skip to main content
Module

x/endofunctor/types.ts>FunRouterOptions

🌍 Vixeny: A runtime-agnostic, performance-centric library championing functional purity for modern web development.
Go to Latest
type alias FunRouterOptions
Re-export
import { type FunRouterOptions } from "https://deno.land/x/endofunctor@v0.0.950/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; cors?: CORSOptions; readonly router?: { strictTrailingSlash?: false; }; paramsStartsWith?: string; readonly stateFlags?: { isFileServer?: true; slashIs?: string; isWild?: true; }; readonly retruns?: any; readonly enableLiveReloading?: true; 404?: (x: Request) => Response; 405?: (x: Request) => Response; readonly cyclePlugin?: CyclePluginMap; }