rou3.mts
This file
Path
benchmarks/routers/src/rou3.mts
19 lines · 480 bytes · TypeScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than fa5f9bf point at it.
Merge commit from forkYusuke Wadabefore adoptionfa5f9bf
lines 1–19why, one step back1import { addRoute, createRouter, findRoute } from 'rou3'2import type { RouterInterface } from './tool.mts'3import { handler, routes } from './tool.mts'45const name = 'rou3'6const router = createRouter()78for (const route of routes) {9 addRoute(router, route.path, route.method, handler)10}1112export const rou3Router: RouterInterface = {13 name,14 match: (route) => {15 findRoute(router, route.path, route.method, {16 ignoreParams: false, // Don't ignore params17 })18 },19}