v0.14.1
This commit is contained in:
+8
-2
@@ -4,8 +4,8 @@ use crate::{
|
||||
home_assistant, influxdb,
|
||||
models::{
|
||||
ApiTokenInfo, ApplicationSettings, Automation, ClimateGroup, ConfigurationExport,
|
||||
ConnectionStatus, ConnectionType, DebugSettings, Device, DeviceCommand, DevicePatch, DiscoveryRequest,
|
||||
EnergySourcePreference, Flow, GreeSettings,
|
||||
ConnectionStatus, ConnectionType, DebugSettings, Device, DeviceCommand, DeviceGroup, DeviceGroupKind, DevicePatch, DiscoveryRequest,
|
||||
EnergyReading, EnergySourcePreference, Flow, GreeSettings,
|
||||
GreeCloudSettings, GreeCloudSettingsUpdate, GreeCloudSettingsView,
|
||||
GroupControlPatch, HaReading, HistorySettings, HomeAssistantSettings,
|
||||
HomeAssistantSettingsUpdate, HomeAssistantSettingsView, InfluxDbSettings,
|
||||
@@ -95,6 +95,11 @@ pub fn router(state: AppState) -> Router {
|
||||
.route("/api/devices/:id/poll", post(poll_device))
|
||||
.route("/api/devices/:id/probe", post(probe_device))
|
||||
.route("/api/devices/:id/command", post(command_device))
|
||||
.route("/api/device-groups", get(list_device_groups).post(create_device_group))
|
||||
.route(
|
||||
"/api/device-groups/:id",
|
||||
get(get_device_group).put(update_device_group).delete(delete_device_group),
|
||||
)
|
||||
.route("/api/zones", get(list_zones).post(create_zone))
|
||||
.route(
|
||||
"/api/zones/:id",
|
||||
@@ -344,6 +349,7 @@ pub fn router(state: AppState) -> Router {
|
||||
include!("api/auth.rs");
|
||||
include!("api/system.rs");
|
||||
include!("api/devices.rs");
|
||||
include!("api/device_groups.rs");
|
||||
include!("api/zones.rs");
|
||||
include!("api/groups.rs");
|
||||
include!("api/house.rs");
|
||||
|
||||
Reference in New Issue
Block a user