Created
April 14, 2019 15:35
-
-
Save rag594/cd48525816248b0d5162a8c9b49f0139 to your computer and use it in GitHub Desktop.
Simple Hello World using Crow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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