diff options
author | Ed Tanous <edtanous@google.com> | 2022-05-24 22:49:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-06-01 19:21:42 +0300 |
commit | f65fca6a44ded566fa6e993b1b23b2e189a48703 (patch) | |
tree | a5579e4adbfab8504294e2a732bee00a71a43fc5 /redfish-core/include | |
parent | 002d39b4a7a5ed7166e2acad84e0943c3def9492 (diff) | |
download | bmcweb-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')
-rw-r--r-- | redfish-core/include/redfish.hpp | 3 |
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); } }; |