u/src/state.rs
2023-04-28 13:19:02 -04:00

9 lines
196 B
Rust

use std::sync::Arc;
pub type ArcState = Arc<State>;
pub type ReqState = axum::extract::State<ArcState>;
pub struct State {
pub db: sqlx::SqlitePool,
pub files_dir: std::path::PathBuf,
}