summaryrefslogtreecommitdiff
path: root/include/redfish_v1.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-10-25 02:30:02 +0300
committerJames Feist <james.feist@linux.intel.com>2020-07-16 19:30:30 +0300
commitb41187fac9d82be2ea26bd8695f2beba135e80f1 (patch)
tree1a0dd10ee2c3d2e470e9ccbfe7cb7171753673e1 /include/redfish_v1.hpp
parent3909dc82a003893812f598434d6c4558107afa28 (diff)
downloadbmcweb-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/redfish_v1.hpp')
-rw-r--r--include/redfish_v1.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/redfish_v1.hpp b/include/redfish_v1.hpp
index 3a4b9f5228..dfdb900b02 100644
--- a/include/redfish_v1.hpp
+++ b/include/redfish_v1.hpp
@@ -17,7 +17,7 @@ template <typename... Middlewares>
void requestRoutes(Crow<Middlewares...>& app)
{
BMCWEB_ROUTE(app, "/redfish/")
- .methods("GET"_method)(
+ .methods(boost::beast::http::verb::get)(
[](const crow::Request& req, crow::Response& res) {
res.jsonValue = {{"v1", "/redfish/v1/"}};
res.end();