Add function to extract logs

This commit is contained in:
2024-10-01 22:27:34 +02:00
parent 63bdeed952
commit 75753051f9
5 changed files with 55 additions and 2 deletions

View File

@ -180,6 +180,11 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
"/web_api/device/{id}",
web::delete().to(devices_controller::delete_device),
)
// Logging controller API
.route(
"/web_api/logging/logs",
web::get().to(logging_controller::get_log),
)
// Relays API
.route(
"/web_api/relays/list",