Skip to content

Commit

Permalink
feat: create hello world application
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Oct 11, 2023
1 parent 92904ec commit 80cd745
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion backend/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 80cd745

Please sign in to comment.