Move Non-Redfish Routes to their Own Folder
I believe we should separate out the layers between redfish and redfish used utils.
If helper functions need to be called by POST actions, we should have a separate folder for all these action managers.
Want to avoid the word "util" here so using "action_manager" as the folder.
#tlbmc
#bmc-bloom
PiperOrigin-RevId: 823103207
Change-Id: Iff9de964ddfec917c2ab9b4b69d858d4c2a2fff3
diff --git a/tlbmc/meson.build b/tlbmc/meson.build
index 2b4a3cd..fb79a50 100644
--- a/tlbmc/meson.build
+++ b/tlbmc/meson.build
@@ -185,6 +185,7 @@
'redfish/query_parameters.cc',
'redfish/request.cc',
'redfish/response.cc',
+ 'redfish/routes/action_managers/trust_bundle_manager.cc',
'redfish/routes/all_chassis.cc',
'redfish/routes/all_routes.cc',
'redfish/routes/all_sensors.cc',
@@ -201,7 +202,6 @@
'redfish/routes/thermal_subsystem.cc',
'redfish/routes/tlbmc_metrics.cc',
'redfish/routes/tlbmc_root.cc',
- 'redfish/routes/trust_bundle_manager.cc',
'redfish/routes/update_service.cc',
'redfish/routing.cc',
'redfish/url.cc',
diff --git a/tlbmc/redfish/routes/trust_bundle_manager.cc b/tlbmc/redfish/routes/action_managers/trust_bundle_manager.cc
similarity index 98%
rename from tlbmc/redfish/routes/trust_bundle_manager.cc
rename to tlbmc/redfish/routes/action_managers/trust_bundle_manager.cc
index c97342e..4e5ad63 100644
--- a/tlbmc/redfish/routes/trust_bundle_manager.cc
+++ b/tlbmc/redfish/routes/action_managers/trust_bundle_manager.cc
@@ -1,4 +1,4 @@
-#include "tlbmc/redfish/routes/trust_bundle_manager.h"
+#include "tlbmc/redfish/routes/action_managers/trust_bundle_manager.h"
#include <cstdlib>
#include <filesystem> // NOLINT
diff --git a/tlbmc/redfish/routes/trust_bundle_manager.h b/tlbmc/redfish/routes/action_managers/trust_bundle_manager.h
similarity index 100%
rename from tlbmc/redfish/routes/trust_bundle_manager.h
rename to tlbmc/redfish/routes/action_managers/trust_bundle_manager.h
diff --git a/tlbmc/redfish/routes/certificate_service.cc b/tlbmc/redfish/routes/certificate_service.cc
index 4aa68ef..1301d51 100644
--- a/tlbmc/redfish/routes/certificate_service.cc
+++ b/tlbmc/redfish/routes/certificate_service.cc
@@ -13,7 +13,7 @@
#include "tlbmc/redfish/app.h"
#include "tlbmc/redfish/request.h"
#include "tlbmc/redfish/response.h"
-#include "tlbmc/redfish/routes/trust_bundle_manager.h"
+#include "tlbmc/redfish/routes/action_managers/trust_bundle_manager.h"
namespace milotic_tlbmc::certificate_service {