blob: 4e563df7fc089f52751064b62d45b695734c7b07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use sqlx::PgPool;
use std::sync::Arc;
use axum::extract::State;
use crate::auth::Authenticator;
pub struct ServerContext {
pub app_url: String,
pub authenticator: Box<dyn Authenticator + Send + Sync>,
pub db: PgPool,
}
pub type ServerState = State<Arc<ServerContext>>;
|