mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
19 lines
269 B
C++
19 lines
269 B
C++
#define CROW_MAIN
|
|
#include "crow.h"
|
|
|
|
int main()
|
|
{
|
|
crow::SimpleApp app;
|
|
|
|
crow::Blueprint bp("bp_prefix", "cstat");
|
|
|
|
CROW_BP_ROUTE(app, bp, "/")
|
|
([]() {
|
|
return "Hello world!";
|
|
});
|
|
|
|
app.register_blueprint(bp);
|
|
|
|
app.port(18080).run();
|
|
}
|