You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi, I am unsure whether this is a bug or rather a lacking feature but I noticed that my middlewares are not taken into account if none of my routes were "hit". I.e. if a 404 occurs. To fix this, I have to add my own fallback/wildcard route. See this Scala CLI example:
Describe the bug
Hi, I am unsure whether this is a bug or rather a lacking feature but I noticed that my middlewares are not taken into account if none of my routes were "hit". I.e. if a 404 occurs. To fix this, I have to add my own fallback/wildcard route. See this Scala CLI example:
Interestingly, the documentation of
zio.http.RoutePattern#any
(which is used inzio.http.Route#notFound
) statesTherefore, either I am doing it wrong or this is not the intended behaviour.
Expected behaviour
Middlewares are also applied if none of the created routes have been hit.
The text was updated successfully, but these errors were encountered: