blob: a8466a7e43bc6921e00800c1e79602e9e56ec583 [file] [log] [blame]
#include "tlbmc/redfish/routes/all_routes.h"
#include "tlbmc/central_config/config.h"
#include "tlbmc/redfish/app.h"
#include "tlbmc/redfish/routes/all_chassis.h"
#include "tlbmc/redfish/routes/all_sensors.h"
#include "tlbmc/redfish/routes/cable.h"
#include "tlbmc/redfish/routes/certificate_service.h"
#include "tlbmc/redfish/routes/chassis.h"
#include "tlbmc/redfish/routes/debug.h"
#include "tlbmc/redfish/routes/fan.h"
#include "tlbmc/redfish/routes/metric.h"
#include "tlbmc/redfish/routes/power_subsystem.h"
#include "tlbmc/redfish/routes/sensor.h"
#include "tlbmc/redfish/routes/service_root.h"
#include "tlbmc/redfish/routes/task_service.h"
#include "tlbmc/redfish/routes/thermal_subsystem.h"
#include "tlbmc/redfish/routes/tlbmc_metrics.h"
#include "tlbmc/redfish/routes/tlbmc_root.h"
#include "tlbmc/redfish/routes/update_service.h"
namespace milotic_tlbmc {
void RegisterAllRoutes(RedfishApp& app) {
// go/keep-sorted start
all_chassis::RegisterRoutes(app);
all_sensors::RegisterRoutes(app);
chassis::RegisterRoutes(app);
debug::RegisterRoutes(app);
metric::RegisterRoutes(app);
redfish_metrics::RegisterRoutes(app);
sensor::RegisterRoutes(app);
service_root::RegisterRoutes(app);
tlbmc_root::RegisterRoutes(app);
// go/keep-sorted end
if (GetTlbmcConfig().fru_collector_module().own_cables_in_redfish()) {
cable::RegisterRoutes(app);
}
if (GetTlbmcConfig()
.sensor_collector_module()
.thermal_control_sub_module()
.enabled()) {
thermal_subsystem::RegisterRoutes(app);
fan::RegisterRoutes(app);
power_subsystem::RegisterRoutes(app);
}
if (GetTlbmcConfig().install_module().enabled()) {
task_service::RegisterRoutes(app);
update_service::RegisterRoutes(app);
}
if (GetTlbmcConfig().trust_bundle_install_module().enabled()) {
certificate_service::RegisterRoutes(app);
}
}
} // namespace milotic_tlbmc