Add the route to delete a relay

This commit is contained in:
2024-08-31 20:00:40 +02:00
parent 871d5109bf
commit f35aac04f6
5 changed files with 81 additions and 4 deletions

View File

@ -169,6 +169,10 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
"/web_api/relay/create",
web::post().to(relays_controller::create),
)
.route(
"/web_api/relay/{id}",
web::delete().to(relays_controller::delete),
)
// Devices API
.route(
"/devices_api/utils/time",