v0.13.0
This commit is contained in:
@@ -204,6 +204,10 @@ pub fn router(state: AppState) -> Router {
|
||||
.route_layer(middleware::from_fn_with_state(state.clone(), auth));
|
||||
|
||||
let home_assistant_api = Router::new()
|
||||
.route(
|
||||
"/api/integrations/home-assistant/snapshot",
|
||||
get(home_assistant_snapshot),
|
||||
)
|
||||
.route(
|
||||
"/api/integrations/home-assistant/devices",
|
||||
get(list_devices),
|
||||
|
||||
Reference in New Issue
Block a user