diff options
author | Jaeseung Ha <ipknhama@gmail.com> | 2016-08-27 13:32:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-27 13:32:42 +0900 |
commit | 8138d212ffbd9c251ad9c29216cf2790a22e6ff0 (patch) | |
tree | 5c1ef6ade5dc2fa7d1e3c3196441619895f3c439 | |
parent | 85c34942008d5094bc0309670e6cda26f655112b (diff) | |
parent | ea131c360704da74e3f0e394eb91f270f60f87ac (diff) | |
download | crow-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.cpp | 3 |
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){ |