Skip to main content
Module

x/router/mod.ts>Node

A high-performance basic router works anywhere.
Latest
class Node
import { Node } from "https://deno.land/x/router@v2.0.1/mod.ts";

Constructors

new
Node(node?: Partial<Node<T>>)

Type Parameters

optional
T = Function

Properties

children: Map<string, Node<T>>
handler: T | undefined
path: string

Methods

add(path: string, handler: T): void
find(path: string): [T | undefined, Map<string, string>]