summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-04-03 17:07:10 +0300
committerEd Tanous <ed.tanous@intel.com>2019-04-05 02:06:10 +0300
commite12814035e9fca6c543b3c15cc721740e3d38592 (patch)
tree607f42a292c0dcc4fc1048f77a0eaae57e89ba6a
parentcb92c03b1a8798657b9e03602e1ae851b2614e77 (diff)
downloadbmcweb-e12814035e9fca6c543b3c15cc721740e3d38592.tar.xz
bmcweb: fix an issue with /org endpoints
A recent change to the URL routing broke all /org endpoints, which now return 404 instead of the correct data. This resolves it, and points at the correct object paths again. Tested: Given this is a CI failure, will rely on CI to test the /org endpoints. Resolves #72 Change-Id: I779bb32f1f2bcba45fdb64f5bf510e7fa832e2d2 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
-rw-r--r--include/openbmc_dbus_rest.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 9f7a85508b..605d6f9d72 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -2047,7 +2047,7 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...> &app)
.requires({"Login"})
.methods("GET"_method)([](const crow::Request &req, crow::Response &res,
const std::string &path) {
- std::string objectPath = "/xyz/" + path;
+ std::string objectPath = "/org/" + path;
handleDBusUrl(req, res, objectPath);
});
@@ -2056,7 +2056,7 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...> &app)
.methods("PUT"_method, "POST"_method, "DELETE"_method)(
[](const crow::Request &req, crow::Response &res,
const std::string &path) {
- std::string objectPath = "/xyz/" + path;
+ std::string objectPath = "/org/" + path;
handleDBusUrl(req, res, objectPath);
});