Jarred Sumner@jarredsumner.comIn the next version of Bun Bun.serve() gets a simple builtin router.16/2/25, 4:39 pm·3 reposts·69 likes
Verekia 🔮 ManaBlade.com@verekia.com16 Feb 2025YESSSS, I've been doing basic DIY routing around fetch. This will make things a lot simpler without adding any library. Thank you!2
Jarred Sumner@jarredsumner.com16 Feb 2025Bun.serve()'s TypeScript types automatically infer route params from the route path.120
Jarred Sumner@jarredsumner.com16 Feb 2025Routes accept a `BunRequest` which extends `Request` to add `params`. We probably will add more properties to `BunRequest` in the future.111