added docker api for restart and client updat

This commit is contained in:
2025-09-25 22:02:00 +02:00
parent 83cb815e76
commit 428be53fff
4 changed files with 36 additions and 26 deletions

View File

@@ -73,9 +73,11 @@ pub struct HardwareDto {
pub ip_address: String,
}
#[derive(Debug, Deserialize)]
#[serde(tag = "command", content = "data")]
pub enum ServerMessage {
Restart,
Log(String),
Update(String),
Restart,
#[serde(other)]
Unknown,
}