Re:Hono v4.0.0
by _heimdall on Friday February 09, 2024 @08:48AM
(#39314800)
It was a pretty lazy one-off router, nothing too fancy. I use deno's file API to scan a `routes` directory and modified a copy of Astro's router to parse filenames and prioritize route matching patterns.
API-wise its very similar to most other file-based routers, including HonoX. Each file exports `GET`, `POST`, etc functions to handle requests.
API-wise its very similar to most other file-based routers, including HonoX. Each file exports `GET`, `POST`, etc functions to handle requests.