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
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index a9704d6a..10c7161 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 @@
requestRoutesMetricReport(app);
requestRoutesTriggerCollection(app);
requestRoutesTrigger(app);
+
+ requestRoutesRedfish(app);
}
};