blob: eddba946164a670cf97a86d0d1eabd69c45254d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use sqlx::PgPool;
use std::sync::Arc;
use axum::Extension;
use crate::auth::Authenticator;
pub struct ServerContext {
pub app_url: String,
pub authenticator: Authenticator,
pub db: PgPool,
}
pub type ContextExtension = Extension<Arc<ServerContext>>;
|