diff options
author | ipknHama <ipknhama@gmail.com> | 2014-10-07 21:51:24 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-10-07 21:51:24 +0900 |
commit | a5fab23f70e6e33c633ba4b646a41d0851169ad1 (patch) | |
tree | 78a80f28adf2e145e061ee0a04e5ffc8fa915a1d /examples/example_chat.cpp | |
parent | d496f0f4b5a4f154ffdb89896d8de155a002c393 (diff) | |
download | crow-a5fab23f70e6e33c633ba4b646a41d0851169ad1.tar.gz crow-a5fab23f70e6e33c633ba4b646a41d0851169ad1.zip |
HTTP GET/POST method distinguish
Diffstat (limited to 'examples/example_chat.cpp')
-rw-r--r-- | examples/example_chat.cpp | 1 |
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; |