Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ash/src/Router/Route.ts>default.register

A stylish web framework for Deno!
Latest
method default.register
import { default } from "https://deno.land/x/ash@1.3.6/src/Router/Route.ts";

Registers a route.

Parameters

methods: string | string[]

The list of HTTP methods to accept.

path: string

The path to match.

controller: Controller | Function

A callback controller/function that will be called when the path matches.