diff options
Diffstat (limited to 'examples/helloworld.cpp')
-rw-r--r-- | examples/helloworld.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/helloworld.cpp b/examples/helloworld.cpp new file mode 100644 index 0000000..8b77490 --- /dev/null +++ b/examples/helloworld.cpp @@ -0,0 +1,13 @@ +#include "crow.h" + +int main() +{ + crow::SimpleApp app; + + CROW_ROUTE(app, "/") + ([]() { + return "Hello world!"; + }); + + app.port(18080).run(); +} |