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

x/mith_router/example/deps.ts>Router#useRouter

Routing system for Mith framework
Latest
method Router.prototype.useRouter
import { Router } from "https://deno.land/x/mith_router@v0.5.0/example/deps.ts";

Register router middleware to be used with the router.

Parameters

path: string

path that will be matched with the requested url

middleware: RouterMiddleware | Array<RouterMiddleware>