aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example_chat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example_chat.cpp b/examples/example_chat.cpp
index 31f16c5..aa7cc96 100644
--- a/examples/example_chat.cpp
+++ b/examples/example_chat.cpp
@@ -79,6 +79,7 @@ int main()
});
CROW_ROUTE(app, "/send")
+ .methods("GET"_method, "POST"_method)
([](const crow::request& req)
{
CROW_LOG_INFO << "msg from client: " << req.body;