Rest endpoint is now a little bit more fleshed out
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user