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>
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 9f7a855..605d6f9 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -2047,7 +2047,7 @@
.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 @@
.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);
});