diff --git a/include/crow/app.h b/include/crow/app.h index 7eb327983..66462f3da 100644 --- a/include/crow/app.h +++ b/include/crow/app.h @@ -29,7 +29,7 @@ #else #define CROW_ROUTE(app, url) app.route(url) #define CROW_BP_ROUTE(blueprint, url) blueprint.new_rule_tagged(url) -#define CROW_MIDDLEWARES(app, ...) middlewares() +#define CROW_MIDDLEWARES(app, ...) middlewares::type, __VA_ARGS__>() #endif #define CROW_CATCHALL_ROUTE(app) app.catchall_route() #define CROW_BP_CATCHALL_ROUTE(blueprint) blueprint.catchall_rule()