homecore-api 0.1.0-alpha.0

Wire-compatible Axum REST + WebSocket port of Home Assistant's API (ADR-130)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! HOMECORE-API — wire-compat Axum REST + WebSocket port of HA's API (ADR-130).
pub mod app;
pub mod auth;
pub mod error;
pub mod rest;
pub mod state;
pub mod tokens;
pub mod ws;

pub use app::{build_cors_layer, router, AppState};
pub use error::{ApiError, ApiResult};
pub use state::SharedState;
pub use tokens::LongLivedTokenStore;

pub const DEFAULT_PORT: u16 = 8123;