Saturn icon indicating copy to clipboard operation
Saturn copied to clipboard

Endpoint router does not have concept of NotFoundHandler

Open nojaf opened this issue 3 years ago • 1 comments

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?

nojaf avatar Jan 15 '22 10:01 nojaf

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)

dredgy avatar Jan 21 '22 13:01 dredgy