import { type DiscoverRoutesOptions } from "https://deno.land/x/http_fns@v0.0.27/discover_routes.ts";
Options for the discoverRoutes
function
Properties
optional
pattern: PathPatternThe root URL path pattern under which all discovered routes are nested. Defaults to '/'.
optional
fileRootUrl: string | URLThe root folder to walk in the filesystem as a file:
URL.
optional
pathMapper: PathMapperFunction to transform a discovered path entry.
optional
routeMapper: RouteMapperFunction to mapper each file entry to zero, one or many routes. The default mapping only maps typescript files.
optional
compare: RouteComparatorFunction to compare two routes to determine ordering of the discovered routes.