aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-10-07 21:51:24 +0900
committeripknHama <ipknhama@gmail.com>2014-10-07 21:51:24 +0900
commita5fab23f70e6e33c633ba4b646a41d0851169ad1 (patch)
tree78a80f28adf2e145e061ee0a04e5ffc8fa915a1d /examples
parentd496f0f4b5a4f154ffdb89896d8de155a002c393 (diff)
downloadcrow-a5fab23f70e6e33c633ba4b646a41d0851169ad1.tar.gz
crow-a5fab23f70e6e33c633ba4b646a41d0851169ad1.zip
HTTP GET/POST method distinguish
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;