Module

x/ash/mod.ts>Route.match

A stylish web framework for Deno!
Latest
method Route.match
import { Route } from "https://dotland.deno.dev/x/ash@1.3.6/mod.ts";

Registers a route that matches for the the provided HTTP methods.

Parameters

methods: string | string[]

The HTTP methods to match.

path: string

The path to register.

controller: Controller | Function

The controller that will be called when the path is matched.