Closed ezamosch closed 4 years ago
CROW_ROUTE
looks like this -> #define CROW_ROUTE(app, url) app.route<crow::black_magic::get_parameter_tag(url)>(url)
. Maybe try something like this:
Application->route<crow::black_magic::get_parameter_tag("/")>("/")([&](const crow::request& req, crow::response& res) {return "index"});
?
CROW_ROUTE
looks like this ->#define CROW_ROUTE(app, url) app.route<crow::black_magic::get_parameter_tag(url)>(url)
. Maybe try something like this:Application->route<crow::black_magic::get_parameter_tag("/")>("/")([&](const crow::request& req, crow::response& res) {return "index"});
?
On this case I get:
Look into code ;) If you pass request and response object, then lambda can't return anything.
@mrozigor thank you 😊
Hello.
I want to create Crow server in object oriented paradigm. Something like this:
But I get error with route method of my Application method - "no instance of function template ...". Tell me please, how I supposed to property use route method properly to create route analogically to this: