Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/composium/mod.ts>createRoute

Powered by functional composition and the URL Pattern API, composium has become the most flexible routing framework in the world.
Go to Latest
function createRoute
import { createRoute } from "https://deno.land/x/composium@v0.0.7/mod.ts";

A curried function which takes HTTP Methods, a URLPatternInput and CtxHandlers and returns in the end a composed route function.

createRoute("GET")({ pathname: "*" })(ctxHandler)

Parameters

...methods: Method[]