Local Middleware Not Working with route_dynamic in Crow #933
Labels
discussion
The viability / implementation of the issue is up for debate
feature
Code based project improvement
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.The text was updated successfully, but these errors were encountered: