Rest endpoint is now a little bit more fleshed out

This commit is contained in:
2026-01-19 11:29:37 +01:00
parent 251d245aeb
commit 9b093e6739
6 changed files with 49 additions and 19 deletions

View File

@@ -2,7 +2,6 @@ use std::{
sync::{Arc, Mutex},
};
use chrono::{DateTime, Local};
use cron_tab::Cron;
use gpio_cdev::Chip;
@@ -12,11 +11,8 @@ mod handler;
mod router;
mod scheduler;
mod ringer;
mod types;
struct Alarm {
enabled: bool,
time: DateTime<Local>
}
#[derive(Clone)]
struct AppState {