Check for loops in relays

This commit is contained in:
2024-08-27 18:38:49 +02:00
parent d890b23670
commit 50e61707cc
3 changed files with 133 additions and 5 deletions
central_backend/src

@ -165,6 +165,10 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
"/web_api/relays/list",
web::get().to(relays_controller::get_list),
)
.route(
"/web_api/relays/create",
web::post().to(relays_controller::create),
)
// Devices API
.route(
"/devices_api/utils/time",