From 620cf8fa33835c1ce1e56b1028ff6e2a6fbe0f39 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 9 Jul 2026 22:00:59 +0200 Subject: chore: Add more things --- crates/server/src/handlers/v0/mod.rs | 2 +- crates/server/src/handlers/v0/record.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/server/src/handlers/v0') diff --git a/crates/server/src/handlers/v0/mod.rs b/crates/server/src/handlers/v0/mod.rs index 78fb47b8..2066636c 100644 --- a/crates/server/src/handlers/v0/mod.rs +++ b/crates/server/src/handlers/v0/mod.rs @@ -1 +1 @@ -pub(crate) mod record; +pub mod record; diff --git a/crates/server/src/handlers/v0/record.rs b/crates/server/src/handlers/v0/record.rs index 0381ded8..f7758c1a 100644 --- a/crates/server/src/handlers/v0/record.rs +++ b/crates/server/src/handlers/v0/record.rs @@ -8,10 +8,10 @@ use crate::{ router::{AppState, UserAuth}, }; -use crate::atuin_common::record::{EncryptedData, HostId, Record, RecordIdx, RecordStatus}; +use turtle_common::record::{EncryptedData, HostId, Record, RecordIdx, RecordStatus}; #[instrument(skip_all, fields(user.id = user.id.to_string()))] -pub(crate) async fn post( +pub async fn post( UserAuth(user): UserAuth, state: State, Json(records): Json>>, @@ -50,7 +50,7 @@ pub(crate) async fn post( } #[instrument(skip_all, fields(user.id = user.id.to_string()))] -pub(crate) async fn index( +pub async fn index( UserAuth(user): UserAuth, state: State, ) -> Result, ErrorResponseStatus<'static>> { @@ -75,7 +75,7 @@ pub(crate) async fn index( } #[derive(Deserialize)] -pub(crate) struct NextParams { +pub struct NextParams { host: HostId, tag: String, start: Option, @@ -83,7 +83,7 @@ pub(crate) struct NextParams { } #[instrument(skip_all, fields(user.id = user.id.to_string()))] -pub(crate) async fn next( +pub async fn next( params: Query, UserAuth(user): UserAuth, state: State, -- cgit v1.3.1