aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaeseung Ha <ipknhama@gmail.com>2016-08-27 13:32:42 +0900
committerGitHub <noreply@github.com>2016-08-27 13:32:42 +0900
commit8138d212ffbd9c251ad9c29216cf2790a22e6ff0 (patch)
tree5c1ef6ade5dc2fa7d1e3c3196441619895f3c439
parent85c34942008d5094bc0309670e6cda26f655112b (diff)
parentea131c360704da74e3f0e394eb91f270f60f87ac (diff)
downloadcrow-8138d212ffbd9c251ad9c29216cf2790a22e6ff0.tar.gz
crow-8138d212ffbd9c251ad9c29216cf2790a22e6ff0.zip
Merge pull request #127 from DeliciousGarfield/master
Add a simpler way for json example
-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){