admin.rs (256B)
1 use rocket::{Catcher, Route}; 2 pub fn routes() -> Vec<Route> { 3 routes![admin_disabled] 4 } 5 pub const fn catchers() -> Vec<Catcher> { 6 Vec::new() 7 } 8 #[get("/")] 9 const fn admin_disabled() -> &'static str { 10 "The admin panel is permanently disabled." 11 }