diff --git a/src/api/admin.rs b/src/api/admin.rs index 7037bfb1..1a717f41 100644 --- a/src/api/admin.rs +++ b/src/api/admin.rs @@ -98,8 +98,11 @@ static CAN_BACKUP: LazyLock = LazyLock::new(|| ACTIVE_DB_TYPE.get().is_som static CAN_BACKUP: LazyLock = 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";