From 23b9e8a68c41885f73418cd93ebb84b78011f10f Mon Sep 17 00:00:00 2001 From: Ray Kohler Date: Mon, 11 Aug 2025 17:53:31 -0400 Subject: fix: `cargo update` and changes needed to accomodate it --- crates/atuin-server/src/handlers/record.rs | 5 ++--- crates/atuin-server/src/router.rs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'crates/atuin-server/src') diff --git a/crates/atuin-server/src/handlers/record.rs b/crates/atuin-server/src/handlers/record.rs index 1400a923..59a10109 100644 --- a/crates/atuin-server/src/handlers/record.rs +++ b/crates/atuin-server/src/handlers/record.rs @@ -4,12 +4,11 @@ use tracing::instrument; use super::{ErrorResponse, ErrorResponseStatus, RespExt}; use crate::router::UserAuth; -use atuin_server_database::Database; use atuin_common::record::{EncryptedData, Record}; #[instrument(skip_all, fields(user.id = user.id))] -pub async fn post( +pub async fn post( UserAuth(user): UserAuth, ) -> Result<(), ErrorResponseStatus<'static>> { // anyone who has actually used the old record store (a very small number) will see this error @@ -27,7 +26,7 @@ pub async fn post( } #[instrument(skip_all, fields(user.id = user.id))] -pub async fn index(UserAuth(user): UserAuth) -> axum::response::Response { +pub async fn index(UserAuth(user): UserAuth) -> axum::response::Response { let ret = json!({ "hosts": {} }); diff --git a/crates/atuin-server/src/router.rs b/crates/atuin-server/src/router.rs index 6d168f63..1118ab29 100644 --- a/crates/atuin-server/src/router.rs +++ b/crates/atuin-server/src/router.rs @@ -123,8 +123,8 @@ pub fn router(database: DB, settings: Settings) -> Router { .route("/account/password", patch(handlers::user::change_password)) .route("/register", post(handlers::user::register)) .route("/login", post(handlers::user::login)) - .route("/record", post(handlers::record::post::)) - .route("/record", get(handlers::record::index::)) + .route("/record", post(handlers::record::post)) + .route("/record", get(handlers::record::index)) .route("/record/next", get(handlers::record::next)) .route("/api/v0/me", get(handlers::v0::me::get)) .route("/api/v0/account/verify", post(handlers::user::verify_user)) -- cgit v1.3.1