deno.land / x / deno@v1.28.2 / cli / bench / testdata / npm / hono / dist / router / trie-router / router.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.TrieRouter = void 0;const node_1 = require("./node");class TrieRouter { constructor() { this.node = new node_1.Node(); } add(method, path, handler) { this.node.insert(method, path, handler); } match(method, path) { return this.node.search(method, path); }}exports.TrieRouter = TrieRouter;
deno

Version Info

Tagged at
2 years ago