diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webserver_main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 6bdce98163..9d2aa8a13d 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -15,6 +15,7 @@ #include <obmc_console.hpp> #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> @@ -86,8 +87,16 @@ static int run() redfish::requestRoutes(app); redfish::RedfishService redfish(app); + // Create HttpClient instance and initialize Config + crow::HttpClient::getInstance(); + // Create EventServiceManager instance and initialize Config redfish::EventServiceManager::getInstance(); + +#ifdef BMCWEB_ENABLE_REDFISH_AGGREGATION + // Create RedfishAggregator instance and initialize Config + redfish::RedfishAggregator::getInstance(); +#endif #endif #ifdef BMCWEB_ENABLE_DBUS_REST |