summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@linux.vnet.ibm.com>2019-12-14 07:09:47 +0300
committerRatan Gupta <ratagupt@linux.vnet.ibm.com>2020-04-08 21:29:00 +0300
commit453fed064da5751d4de325357ead2b4e1c5a3757 (patch)
treeeba35e2ee0c59f2f0791396c1fd9a485036702ed /src
parentcb6cb49df6778d48ef3a90d181169abfb4e4354e (diff)
downloadbmcweb-453fed064da5751d4de325357ead2b4e1c5a3757.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/webserver_main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 901c180366..4bdf880641 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 @@ int main(int argc, char** argv)
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__ << ')';