summaryrefslogtreecommitdiff
path: root/redfish-core/include/redfish.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-05-24 22:49:41 +0300
committerEd Tanous <ed@tanous.net>2022-06-01 19:21:42 +0300
commitf65fca6a44ded566fa6e993b1b23b2e189a48703 (patch)
treea5579e4adbfab8504294e2a732bee00a71a43fc5 /redfish-core/include/redfish.hpp
parent002d39b4a7a5ed7166e2acad84e0943c3def9492 (diff)
downloadbmcweb-f65fca6a44ded566fa6e993b1b23b2e189a48703.tar.xz
Move redfish/v1 instantiation
Make /redfish/v1 get instantiated in the same place as the other redfish routes, and not in main(). Tested: curl -vvvv --insecure --user root:0penBmc https://192.168.7.2/redfish returns the same value as previously. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Icb93954c00a4cf41708f1b323ddbd83e61146e5d
Diffstat (limited to 'redfish-core/include/redfish.hpp')
-rw-r--r--redfish-core/include/redfish.hpp3
1 files changed, 3 insertions, 0 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);
}
};