Luca Palmieri has been struggling with Pavex, the Rust web framework I'm developing. A fallback handler is the function that will be invoked when an incoming request fails to match any of the routes you registered. All your routes expose a JSON-based API, but all your routes are serving HTML pages.

5m read timeFrom lpalmieri.com
Post cover image
Table of contents
Crafting boring APIs: lessons learned from implementing fallback handlers in PavexThe problemFeatures interactThe solution spaceClosing thoughts

Sort: