radix3.mts
This file
Path
benchmarks/routers/src/radix3.mts
17 lines · 371 bytes · TypeScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than f0b094d point at it.
Merge commit from forkYusuke Wadabefore adoptionf0b094d
lines 1–17why, one step back1import { createRouter } from 'radix3'2import type { RouterInterface } from './tool.mts'3import { routes, handler } from './tool.mts'45const name = 'radix3'6const router = createRouter()78for (const route of routes) {9 router.insert(route.path, handler)10}1112export const radix3Router: RouterInterface = {13 name,14 match: (route) => {15 router.lookup(route.path)16 },17}