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
I have configured routes in database for my crow application. Therefore, I am calling app.route_dynamic(url) to set routes instead of calling app.routecrow::black_magic::get_parameter_tag(url)(url) or CROW_ROUTE(app, url). Now I want to enable local middlewares for specific handlers but when I call CROW_MIDDLEWARE(app, my_local_middleware), error occurs.
error: DynamicRule has no member function middlewares.
I went through the crow code and found that since only Taggedrule has the middlewares() function (which enables the middleware to the route), local middlewares can be set only using app.routecrow::black_magic::get_parameter_tag(url)(url). How can I set local middleware if I am using app.route_dynamic.
The text was updated successfully, but these errors were encountered:
I have configured routes in database for my crow application. Therefore, I am calling app.route_dynamic(url) to set routes instead of calling app.routecrow::black_magic::get_parameter_tag(url)(url) or CROW_ROUTE(app, url). Now I want to enable local middlewares for specific handlers but when I call CROW_MIDDLEWARE(app, my_local_middleware), error occurs.
error: DynamicRule has no member function middlewares.
I went through the crow code and found that since only Taggedrule has the middlewares() function (which enables the middleware to the route), local middlewares can be set only using app.routecrow::black_magic::get_parameter_tag(url)(url). How can I set local middleware if I am using app.route_dynamic.
The text was updated successfully, but these errors were encountered: