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.
Currently server middleware is defined on
HttpRoutesso it has to be applied before.orNotFoundand it would not run if route is not found.I think it should default to
HttpAppwithHttpRoutesprovided as an alternative for more complex integrations.