Add back odata support
/redfish/v1/odata/index.json was inadvertently moved to be not
installed in
a529a6aa44e04ae5845d1324f3e8c887ebd47f7b
This file is basically unused, and even this author doesn't understand
what it's used for, but it is technically required in the spec, so add
it back using a runtime derived handler.
Tested:
Get /redfish/v1/odata returns the appropriate struct.
Change-Id: I548abbdd9f0b1eb28299165202626feede41e363
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/redfish-core/src/redfish.cpp b/redfish-core/src/redfish.cpp
index 57378d5..3cda4ec 100644
--- a/redfish-core/src/redfish.cpp
+++ b/redfish-core/src/redfish.cpp
@@ -26,6 +26,7 @@
#include "metric_report.hpp"
#include "metric_report_definition.hpp"
#include "network_protocol.hpp"
+#include "odata.hpp"
#include "pcie.hpp"
#include "power.hpp"
#include "power_subsystem.hpp"
@@ -53,6 +54,7 @@
RedfishService::RedfishService(App& app)
{
requestRoutesMetadata(app);
+ requestRoutesOdata(app);
requestAccountServiceRoutes(app);
if constexpr (BMCWEB_REDFISH_AGGREGATION)