Dynamic EventLogService handler
In order to reuse the handler for the EventLogService under Managers,
extract the logic from the handler and put it into a separate function
in the eventlog util. Add an additional argument that specifies
the redfish resource, so we can handle Systems and Managers resource
with the same handler.
Tested: Code compiles. Redfish validation succeeds.
Additionally the curl output with and without the changes has been
diffed. No differences observed.
Change-Id: I48825b55b41afeafa02283dc91cf4cb1cd4cd7c3
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
diff --git a/redfish-core/src/redfish.cpp b/redfish-core/src/redfish.cpp
index 3eac59d..6f61f91 100644
--- a/redfish-core/src/redfish.cpp
+++ b/redfish-core/src/redfish.cpp
@@ -115,7 +115,7 @@
requestRoutesCableCollection(app);
requestRoutesSystemLogServiceCollection(app);
- requestRoutesEventLogService(app);
+ requestRoutesSystemsEventLogService(app);
requestRoutesSystemsLogServicesPostCode(app);