From f65fca6a44ded566fa6e993b1b23b2e189a48703 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Tue, 24 May 2022 12:49:41 -0700 Subject: 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 Change-Id: Icb93954c00a4cf41708f1b323ddbd83e61146e5d --- redfish-core/include/redfish.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'redfish-core/include/redfish.hpp') 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); } }; -- cgit v1.2.3