9 lines
196 B
Rust
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,
|
|
}
|