2 ms·
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 filena
by _heimdall 3y ago
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.