Rest service root implementation
This commit introduces the following
=> Service root implementation
=> compiler option for the IBM management console specific functionalities
TestedBy:
curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/ibm/v1
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Change-Id: I2dcb8eee0b69b1723e0cc3d980a5846b3519e7d9
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 901c180..4bdf880 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -9,6 +9,9 @@
#include <memory>
#include <obmc_console.hpp>
#include <openbmc_dbus_rest.hpp>
+#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE
+#include <ibm/management_console_rest.hpp>
+#endif
#include <persistent_data_middleware.hpp>
#include <redfish.hpp>
#include <redfish_v1.hpp>
@@ -94,6 +97,10 @@
crow::obmc_vm::requestRoutes(app);
#endif
+#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE
+ crow::ibm_mc::requestRoutes(app);
+#endif
+
crow::token_authorization::requestRoutes(app);
BMCWEB_LOG_INFO << "bmcweb (" << __DATE__ << ": " << __TIME__ << ')';