aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-12-15 21:52:42 +0900
committeripknHama <ipknhama@gmail.com>2014-12-15 21:52:42 +0900
commitdc477a2df179ca6dc14a43c2d63945e6d3c5f7a2 (patch)
treebe9284437f57078a269a491c182aac9270af199f /examples
parentaa36502cf27af4457fb57f04c1e612c521978c5e (diff)
downloadcrow-dc477a2df179ca6dc14a43c2d63945e6d3c5f7a2.tar.gz
crow-dc477a2df179ca6dc14a43c2d63945e6d3c5f7a2.zip
fix add_json to handle POST request
Diffstat (limited to 'examples')
-rw-r--r--examples/example.cpp1
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)