natchez-http4s
natchez-http4s copied to clipboard
Trace 404
Currently server middleware is defined on HttpRoutes so it has to be applied before .orNotFound and it would not run if route is not found.
I think it should default to HttpApp with HttpRoutes provided as an alternative for more complex integrations.
I think we should have .httpApp and .httpRoutes here, like in some "built in" http4s middlewares.
just checked and it's server, IMO that one could be deprecated and replaced with the above two. Feel free to PR it in
FYI, the mtl module defines methods that work this way in EntryPointOps.