diff options
author | ipkn <ipknhama@gmail.com> | 2015-09-04 15:19:45 +0900 |
---|---|---|
committer | ipkn <ipknhama@gmail.com> | 2015-09-04 15:19:45 +0900 |
commit | e335618ba29436c26f0cfca670ee063b9c871538 (patch) | |
tree | 00cada2fe014035ebed0a77fa335dc53c63a8a3d /examples/helloworld.cpp | |
parent | 21372f173c2964a51ab19590c7eabf4cd3203671 (diff) | |
parent | 5e5cabcea3b4d2d4f202359de2cce2cd49ceaff2 (diff) | |
download | crow-e335618ba29436c26f0cfca670ee063b9c871538.tar.gz crow-e335618ba29436c26f0cfca670ee063b9c871538.zip |
Merge pull request #71 from mnpk/master
Add helloworld example, Add coverage badge, Update README.md
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(); +} |