I'm currently using Crow extensively for a project. After doing some research in the Crow repository and reviewing code and related issues, particularly Issue #717, I noticed a limitation: it seems that local middlewares cannot be applied using route_dynamic, especially when working with WebSocket protocols or standard web usage patterns.
Based on my testing, the middleware isn’t properly applied within route_dynamic. This issue affects both WebSocket connections and regular web routes, making it difficult to implement route-specific logic like authentication or authorization using local middleware.
I'm currently using Crow extensively for a project. After doing some research in the Crow repository and reviewing code and related issues, particularly Issue #717, I noticed a limitation: it seems that local middlewares cannot be applied using
route_dynamic
, especially when working with WebSocket protocols or standard web usage patterns.For example:
Based on my testing, the middleware isn’t properly applied within
route_dynamic
. This issue affects both WebSocket connections and regular web routes, making it difficult to implement route-specific logic like authentication or authorization using local middleware.