Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/danet/src/router/router.ts>DanetRouter

A savory web framework for Deno heavily inspired by Nest
Go to Latest
class DanetRouter
import { DanetRouter } from "https://deno.land/x/danet@v0.1.0-alpha/src/router/router.ts";

Constructors

new
DanetRouter(injector: Injector, guardExecutor?: GuardExecutor)

Properties

methodsMap: Map
router: Router

Methods

private
resolveMethodParam(
ControllerMethod: (...args: any[]) => unknown,
context: Context<State, Record<string, any>>,
)
createRoute(
methodName: string,
Controller: Constructor<unknown>,
basePath: string,
)
handleRoute(Controller: ControllerConstructor, ControllerMethod: Callback)