From f03f6e9ad74d8e1cf1fa33dc2c0c7c5dd7ae5c94 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 14 Oct 2022 10:59:21 +0100 Subject: Add automatic update checking (#555) * Add automatic update checking * Add setting to opt out of update checks * Document options * no * no * also no * Make clippy happy * Update atuin-client/src/settings.rs Co-authored-by: Conrad Ludgate * fix features Co-authored-by: Conrad Ludgate Co-authored-by: Conrad Ludgate --- atuin-server/src/handlers/mod.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'atuin-server') diff --git a/atuin-server/src/handlers/mod.rs b/atuin-server/src/handlers/mod.rs index 4be3e388..082ae471 100644 --- a/atuin-server/src/handlers/mod.rs +++ b/atuin-server/src/handlers/mod.rs @@ -1,18 +1,11 @@ -use atuin_common::api::ErrorResponse; +use atuin_common::api::{ErrorResponse, IndexResponse}; use axum::{response::IntoResponse, Json}; -use serde::{Deserialize, Serialize}; pub mod history; pub mod user; const VERSION: &str = env!("CARGO_PKG_VERSION"); -#[derive(Debug, Serialize, Deserialize)] -pub struct IndexResponse { - pub homage: String, - pub version: String, -} - pub async fn index() -> Json { let homage = r#""Through the fathomless deeps of space swims the star turtle Great A'Tuin, bearing on its back the four giant elephants who carry on their shoulders the mass of the Discworld." -- Sir Terry Pratchett"#; -- cgit v1.3.1