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

x/danet/mod.ts>DanetRouter

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
class DanetRouter
Re-export
import { DanetRouter } from "https://deno.land/x/danet@1.5.0/mod.ts";

Constructors

new
DanetRouter(
injector: Injector,
guardExecutor?: GuardExecutor,
filterExecutor?: FilterExecutor,
viewRenderer?: Renderer,
middlewareExecutor?: MiddlewareExecutor,
)

Properties

private
logger: Logger
methodsMap: Map
router: Router

Methods

private
registerController(Controller: Constructor)
private
resolveMethodParam(
ControllerMethod: (...args: any[]) => unknown,
context: HttpContext,
)
private
sendResponse(
response: string | Record<string, unknown>,
ControllerMethod: Callback,
context: HttpContext,
)
createRoute(
handlerName: string | hookName,
Controller: Constructor,
basePath: string,
)
handleRoute(Controller: ControllerConstructor, ControllerMethod: Callback)