diff options
author | Borawski.Lukasz <lukasz.borawski@intel.com> | 2018-01-24 12:20:45 +0300 |
---|---|---|
committer | Borawski.Lukasz <lukasz.borawski@intel.com> | 2018-01-24 12:20:45 +0300 |
commit | b6df6dc7a1777e1063104012cf79f2aaa9dbe3f9 (patch) | |
tree | 96516982623bbf854d970de25027117cc98555e3 /include | |
parent | 86e1b661547fda86c7b92e6e23a50a10d8c9ebd4 (diff) | |
download | bmcweb-b6df6dc7a1777e1063104012cf79f2aaa9dbe3f9.tar.xz |
Service Root
Change-Id: Ibf9d463802d77014852a92ecfcb8096324f3670f
Signed-off-by: Borawski.Lukasz <lukasz.borawski@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/redfish_v1.hpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/redfish_v1.hpp b/include/redfish_v1.hpp index 243ddfb48b..1a5ee74eee 100644 --- a/include/redfish_v1.hpp +++ b/include/redfish_v1.hpp @@ -51,27 +51,6 @@ void request_routes(Crow<Middlewares...>& app) { res.end(); }); - CROW_ROUTE(app, "/redfish/v1/") - .methods( - "GET"_method)([&](const crow::request& req, crow::response& res) { - res.json_value = { - {"@odata.context", "/redfish/v1/$metadata#ServiceRoot.ServiceRoot"}, - {"@odata.id", "/redfish/v1/"}, - {"@odata.type", "#ServiceRoot.v1_1_1.ServiceRoot"}, - {"Id", "RootService"}, - {"Name", "Root Service"}, - {"RedfishVersion", "1.1.0"}, - {"Links", - {{"Sessions", - {{"@odata.id", "/redfish/v1/SessionService/Sessions/"}}}}}}; - - res.json_value["UUID"] = - app.template get_middleware<PersistentData::Middleware>() - .system_uuid; - get_redfish_sub_routes(app, "/redfish/v1/", res.json_value); - res.end(); - }); - CROW_ROUTE(app, "/redfish/v1/Chassis/") .methods("GET"_method)( [&](const crow::request& req, crow::response& res) { |