From a5fab23f70e6e33c633ba4b646a41d0851169ad1 Mon Sep 17 00:00:00 2001 From: ipknHama Date: Tue, 7 Oct 2014 21:51:24 +0900 Subject: HTTP GET/POST method distinguish --- examples/example_chat.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/example_chat.cpp') 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; -- cgit v1.2.3-54-g00ecf