diff options
| author | Mistivia <i@mistivia.com> | 2025-01-15 19:12:12 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-01-15 19:12:46 +0800 |
| commit | 4da382953c830a61ae24ccbe95c4241db8788269 (patch) | |
| tree | 31f6d184273274e2660516d1ac1146b5661f20b6 /lib/crow/examples/helloworld.cpp | |
restore
Diffstat (limited to 'lib/crow/examples/helloworld.cpp')
| -rw-r--r-- | lib/crow/examples/helloworld.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/crow/examples/helloworld.cpp b/lib/crow/examples/helloworld.cpp new file mode 100644 index 0000000..8b77490 --- /dev/null +++ b/lib/crow/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(); +} |
