Skip to main content
Module

x/http_fns/discover_routes.ts

A bunch of functions for building HTTP servers
Go to Latest
import * as httpFns from "https://deno.land/x/http_fns@v0.0.27/discover_routes.ts";

Functions

Default path mapper function.

Default route comparator function.

Default route mapper function.

Utility to walk the local filesystem and discover routes.

Interfaces

A simplified discovered route that associates a single URLPattern with a module specifier.

A discovered route, that associates one or more routes to a module specifier.

Options for the discoverRoutes function

Type Aliases

A discovered file path, that may be a potential route.

Function that transforms a discovered path entry.

Compare two routes to determine ordering of the discovered routes.

Function that maps a discovered path entry to zero, one or many routes.