summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/webserver_main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 9d2aa8a13d..f49b25d0ce 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -16,7 +16,6 @@
#include <openbmc_dbus_rest.hpp>
#include <redfish.hpp>
#include <redfish_aggregator.hpp>
-#include <redfish_v1.hpp>
#include <sdbusplus/asio/connection.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server.hpp>
@@ -84,7 +83,6 @@ static int run()
#endif
#ifdef BMCWEB_ENABLE_REDFISH
- redfish::requestRoutes(app);
redfish::RedfishService redfish(app);
// Create HttpClient instance and initialize Config