diff --git a/src/admin.rs b/src/admin.rs index ce3ce4e..cfdb6a9 100644 --- a/src/admin.rs +++ b/src/admin.rs @@ -1,4 +1,6 @@ use rocket::{ + http::Status, + request::{self, FromRequest, Outcome, Request}, response::stream::{Event, EventStream}, serde::json::Json, tokio::{ @@ -11,74 +13,75 @@ use rocket_dyn_templates::{context, Template}; use crate::global::*; -#[get("/?&")] -fn admin_page( - tok: Option, - dbg: Option, - admin_key: &State, -) -> Option