Browse Source

Merge f852256d3f into 6729e83521

pull/7494/merge
spyesx 14 hours ago
committed by GitHub
parent
commit
7777474752
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      src/api/admin.rs

7
src/api/admin.rs

@ -98,8 +98,11 @@ static CAN_BACKUP: LazyLock<bool> = LazyLock::new(|| ACTIVE_DB_TYPE.get().is_som
static CAN_BACKUP: LazyLock<bool> = LazyLock::new(|| false);
#[get("/")]
fn admin_disabled() -> &'static str {
"The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it"
fn admin_disabled() -> (Status, &'static str) {
(
Status::ServiceUnavailable,
"The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it"
)
}
const COOKIE_NAME: &str = "VW_ADMIN";

Loading…
Cancel
Save