From 6b8fd48fdb1ccce2252dc9665857adcaccd1bfc8 Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 11 Sep 2023 17:50:55 -0700 Subject: [PATCH] simple app --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d5de4aa..631e74b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,12 @@ -#include #include "../include/crow_all.h" +#include int main() { std::cout << "Hello World!" << std::endl; + + crow::SimpleApp app; + + CROW_ROUTE(app, "/")([]() { return "Hello world"; }); + + app.port(3000).multithreaded().run(); }