Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/endofunctor/src/options.ts>FunRouterOptions

🌐 Vixeny: At the forefront of modern web development, Vixeny stands as a runtime-independent, efficiency-driven library dedicated to upholding the principles of functional purity. It's crafted to empower developers with a robust foundation for creating scalable, maintainable, and high-performance web applications.
Latest
type alias FunRouterOptions
import { type FunRouterOptions } from "https://deno.land/x/endofunctor@v0.1.30/src/options.ts";

Options for the router, it is optional

import vixeny from "vixeny/fun"
import pettitions from "./someWhere"
vixeny({
 404: r => new Response("Insert Not Found"),
 405: r => new Response("Insert Bad Method"),
 //default
 paramsStartsWith: ":"
})(...pettions)
definition: { readonly hasName?: string; readonly indexBase?: { bind?: string; at?: number; }; readonly cors?: CORSOptions; readonly router?: { strictTrailingSlash?: false; }; readonly paramsStartsWith?: string; readonly stateFlags?: { isFileServer?: true; slashIs?: string; isWild?: true; }; readonly runtimeOptions?: { returns?: any; }; readonly enableLiveReloading?: true; 404?: (x: Request) => Response; 405?: (x: Request) => Response; readonly cyclePlugin?: PI; }