Skip to main content
Module

x/http_fns/sub_pattern.ts>bySubPattern

A bunch of functions for building HTTP servers
Go to Latest
function bySubPattern
import { bySubPattern } from "https://deno.land/x/http_fns@v0.0.27/sub_pattern.ts";

Match a child route pattern after already matching a parent pattern, and merge the URLPatternResults.

Type Parameters

A extends unknown[]

Parameters

pattern: RoutePattern
handler: (
request: Request,
...args: A,
) => Awaitable<Response | null>