aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/example.cpp b/examples/example.cpp
index dec57cd..059f3ab 100644
--- a/examples/example.cpp
+++ b/examples/example.cpp
@@ -106,6 +106,9 @@ int main()
// * Select 'raw' and then JSON
// * Add {"a": 1, "b": 1}
// * Send and you should receive 2
+
+ // A simpler way for json example:
+ // * curl -d '{"a":1,"b":2}' {ip}:18080/add_json
CROW_ROUTE(app, "/add_json")
.methods("POST"_method)
([](const crow::request& req){