diff options
author | ipknHama <ipknhama@gmail.com> | 2014-12-15 21:52:42 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-12-15 21:52:42 +0900 |
commit | dc477a2df179ca6dc14a43c2d63945e6d3c5f7a2 (patch) | |
tree | be9284437f57078a269a491c182aac9270af199f /examples/example.cpp | |
parent | aa36502cf27af4457fb57f04c1e612c521978c5e (diff) | |
download | crow-dc477a2df179ca6dc14a43c2d63945e6d3c5f7a2.tar.gz crow-dc477a2df179ca6dc14a43c2d63945e6d3c5f7a2.zip |
fix add_json to handle POST request
Diffstat (limited to 'examples/example.cpp')
-rw-r--r-- | examples/example.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example.cpp b/examples/example.cpp index 51ce6ed..1db145f 100644 --- a/examples/example.cpp +++ b/examples/example.cpp @@ -89,6 +89,7 @@ int main() // more json example CROW_ROUTE(app, "/add_json") + .methods("POST"_method) ([](const crow::request& req){ auto x = crow::json::load(req.body); if (!x) |