diff options
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/include/redfish.hpp | 3 | ||||
-rw-r--r-- | redfish-core/lib/redfish_v1.hpp | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index a9704d6aac..10c716109e 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -34,6 +34,7 @@ #include "../lib/power.hpp" #include "../lib/processor.hpp" #include "../lib/redfish_sessions.hpp" +#include "../lib/redfish_v1.hpp" #include "../lib/roles.hpp" #include "../lib/sensors.hpp" #include "../lib/service_root.hpp" @@ -212,6 +213,8 @@ class RedfishService requestRoutesMetricReport(app); requestRoutesTriggerCollection(app); requestRoutesTrigger(app); + + requestRoutesRedfish(app); } }; diff --git a/redfish-core/lib/redfish_v1.hpp b/redfish-core/lib/redfish_v1.hpp index 52d8c7620f..9c24e2132c 100644 --- a/redfish-core/lib/redfish_v1.hpp +++ b/redfish-core/lib/redfish_v1.hpp @@ -19,10 +19,11 @@ inline void redfishGet(App& app, const crow::Request& req, asyncResp->res.jsonValue["v1"] = "/redfish/v1/"; } -inline void requestRoutes(App& app) +inline void requestRoutesRedfish(App& app) { BMCWEB_ROUTE(app, "/redfish/") .methods(boost::beast::http::verb::get)( std::bind_front(redfishGet, std::ref(app))); } + } // namespace redfish |