Crow/examples/example_blueprint.cpp

19 lines
260 B
C++
Raw Normal View History

#define CROW_MAIN
#include "crow.h"
int main()
{
crow::SimpleApp app;
crow::Blueprint bp("bp_prefix");
CROW_BP_ROUTE(app, bp, "/")
([]() {
return "Hello world!";
});
app.register_blueprint(bp);
app.port(18080).run();
}