diff --git a/src/admin.rs b/src/admin.rs new file mode 100644 index 0000000..1cf53d3 --- /dev/null +++ b/src/admin.rs @@ -0,0 +1,88 @@ +use rocket::{ + response::stream::{Event, EventStream}, + serde::json::Json, + tokio::{ + select, + time::{self}, + }, + Route, Shutdown, State, +}; +use rocket_dyn_templates::{context, Template}; + +use crate::global::*; + +#[get("/?&")] +fn admin_page( + tok: Option, + dbg: Option, + admin_key: &State, +) -> Option