aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-server/src
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2022-10-14 10:59:21 +0100
committerGitHub <noreply@github.com>2022-10-14 10:59:21 +0100
commitf03f6e9ad74d8e1cf1fa33dc2c0c7c5dd7ae5c94 (patch)
treeaa03f60230b3bc96485806724383bfd6e4cc6b1d /atuin-server/src
parentFix ZSH import print (diff)
downloadatuin-f03f6e9ad74d8e1cf1fa33dc2c0c7c5dd7ae5c94.zip
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 <conradludgate@gmail.com> * fix features Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
Diffstat (limited to 'atuin-server/src')
-rw-r--r--atuin-server/src/handlers/mod.rs9
1 files changed, 1 insertions, 8 deletions
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<IndexResponse> {
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"#;