diff --git a/backend/src/main.cpp b/backend/src/main.cpp index 474a71a..a927c23 100644 --- a/backend/src/main.cpp +++ b/backend/src/main.cpp @@ -5,5 +5,14 @@ #include "crow.h" int main(void) { - return EXIT_SUCCESS; + // delcare crow application + crow::SimpleApp app; + + // define endpoint at the root directory + CROW_ROUTE(app, "/")([](){ + return "Hello world"; + }); + + // set the port, set the app to run on multiple threads, and run the app + app.port(18080).multithreaded().run(); } \ No newline at end of file