aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)