diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-10-25 02:30:02 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2020-07-16 19:30:30 +0300 |
commit | b41187fac9d82be2ea26bd8695f2beba135e80f1 (patch) | |
tree | 1a0dd10ee2c3d2e470e9ccbfe7cb7171753673e1 /include/login_routes.hpp | |
parent | 3909dc82a003893812f598434d6c4558107afa28 (diff) | |
download | bmcweb-b41187fac9d82be2ea26bd8695f2beba135e80f1.tar.xz |
Deprecate the "" operator, and isEqP
While a cool example of how to do string matching in constexpr space,
the set of verbs available to HTTP has been fixed for a very long time.
This was ported over to beast a while back, but we kept the API for....
mediocre reasons of backward compatibility. Remove that, and delete the
now unused code.
Tested: Built and loaded on a Witherspoon. Validator passes.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: Iaf048e196f9b6e71983189877203bf80390df286
Signed-off-by: James Feist <james.feist@linux.intel.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/login_routes.hpp')
-rw-r--r-- | include/login_routes.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/login_routes.hpp b/include/login_routes.hpp index 346ab89de8..91acda771e 100644 --- a/include/login_routes.hpp +++ b/include/login_routes.hpp @@ -28,8 +28,8 @@ void requestRoutes(Crow<Middlewares...>& app) "auth routes"); BMCWEB_ROUTE(app, "/login") - .methods( - "POST"_method)([](const crow::Request& req, crow::Response& res) { + .methods(boost::beast::http::verb::post)([](const crow::Request& req, + crow::Response& res) { std::string_view contentType = req.getHeaderValue("content-type"); std::string_view username; std::string_view password; @@ -196,7 +196,7 @@ void requestRoutes(Crow<Middlewares...>& app) }); BMCWEB_ROUTE(app, "/logout") - .methods("POST"_method)( + .methods(boost::beast::http::verb::post)( [](const crow::Request& req, crow::Response& res) { auto& session = req.session; if (session != nullptr) |