Display relay consumption history
This commit is contained in:
central_backend/src
central_frontend/src
api
routes
widgets
@ -139,6 +139,10 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
|
||||
"/web_api/energy/cached_consumption",
|
||||
web::get().to(energy_controller::cached_consumption),
|
||||
)
|
||||
.route(
|
||||
"/web_api/energy/relays_consumption",
|
||||
web::get().to(energy_controller::relays_consumption),
|
||||
)
|
||||
.route(
|
||||
"/web_api/energy/relays_consumption/history",
|
||||
web::get().to(energy_controller::relays_consumption_history),
|
||||
|
Reference in New Issue
Block a user