Routing

~import orisha/routing

Orisha's router — the contract.

lib/routing.k · 1 tors

Orisha's router — the contract. Standalone module for testing and benchmarking routing logic without network overhead. No host language here, so no `~` anywhere in the file. Usage: ~test(Route matching) { ~router.match = ok { path: "/users/42", pattern: "/users/:id" } ~router.match(path: "/users/42", pattern: "/users/:id") | ok m |> assert.ok() }