Saturn
Saturn copied to clipboard
Endpoint router does not have concept of NotFoundHandler
Hello,
I noticed that the Router.fs has a concept of not_found_handler but RouterEndpoint.fs does not.
Is this by design? What would the alternative be for not_found_handler for endpoint routing?
This is explained here
https://saturnframework.org/explanations/endpoint-routing.html
Lack of not_found_handler in router and controller - as Endpoint Routing creates global table of routing having scoped not-found handlers is really tricky. Use built-in ways of handle 404 in ASP.NET (such as UseDeveloperExceptionPage)