aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-server/src/handlers/status.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-05-21 16:21:51 +0100
committerGitHub <noreply@github.com>2023-05-21 15:21:51 +0000
commitd2240e1163a62f96dfb1cb99c38ffa2390d53c33 (patch)
treef25616f3855d7f79df9d7d548c901796e136f557 /atuin-server/src/handlers/status.rs
parentRestructure account commands to account subcommand (#984) (diff)
downloadatuin-d2240e1163a62f96dfb1cb99c38ffa2390d53c33.zip
Allow server configured page size (#994)
* Allow server configured page size * Backwards compat via semver checks * Correct header name
Diffstat (limited to 'atuin-server/src/handlers/status.rs')
-rw-r--r--atuin-server/src/handlers/status.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/atuin-server/src/handlers/status.rs b/atuin-server/src/handlers/status.rs
index 351c2dd2..97c02886 100644
--- a/atuin-server/src/handlers/status.rs
+++ b/atuin-server/src/handlers/status.rs
@@ -7,6 +7,8 @@ use crate::{database::Database, models::User, router::AppState};
use atuin_common::api::*;
+const VERSION: &str = env!("CARGO_PKG_VERSION");
+
#[instrument(skip_all, fields(user.id = user.id))]
pub async fn status<DB: Database>(
user: User,
@@ -35,5 +37,7 @@ pub async fn status<DB: Database>(
count,
deleted,
username: user.username,
+ version: VERSION.to_string(),
+ page_size: state.settings.page_size,
}))
}