Can create a relay

This commit is contained in:
2024-08-27 22:32:22 +02:00
parent f46a7dbc94
commit 87fb3360fb
6 changed files with 89 additions and 11 deletions

View File

@ -166,7 +166,7 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
web::get().to(relays_controller::get_list),
)
.route(
"/web_api/relays/create",
"/web_api/relay/create",
web::post().to(relays_controller::create),
)
// Devices API