#include "flask.h" #include int main() { flask::Flask app; FLASK_ROUTE(app, "/") .name("hello") ([]{ return "Hello World!"; }); app.route("/about") ([](){ return "About Flask example."; }); FLASK_ROUTE(app,"/hello/") ([](int count){ if (count > 100) return flask::response(400); std::ostringstream os; os << count << " bottles of beer!"; return flask::response(os.str()); }); // Compile error with message "Handler type is mismatched with URL paramters" //FLASK_ROUTE(app,"/another/") //([](int a, int b){ //return flask::response(500); //}); app.port(8080) .run(); }