changed backedn framwork from axum to actix and also added openapi and swagger ui

This commit is contained in:
2026-02-04 22:55:19 +01:00
parent 9b093e6739
commit e135a34d4c
11 changed files with 1716 additions and 91 deletions

View File

@@ -1,10 +1,12 @@
use apistos::ApiComponent;
use chrono::{DateTime, Local};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ApiComponent)]
pub struct Alarm {
enabled: bool,
time: DateTime<Local>,
pub enabled: bool,
pub time: DateTime<Local>,
}
impl Alarm {