Skip to content

Instantly share code, notes, and snippets.

@rag594
Created April 14, 2019 15:35
Show Gist options
  • Save rag594/cd48525816248b0d5162a8c9b49f0139 to your computer and use it in GitHub Desktop.
Save rag594/cd48525816248b0d5162a8c9b49f0139 to your computer and use it in GitHub Desktop.
Simple Hello World using Crow
#include "crow_all.h"
int main()
{
crow::SimpleApp app;
CROW_ROUTE(app, "/helloworld")
([]{
crow::json::wvalue x;
x["message"] = "Hello, World!";
return x;
});
app.port(3000).multithreaded().run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment