diff --git a/src/main.rs b/src/main.rs index 44fc73a..9841dbe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use std::sync::{Arc}; use tokio::sync::Mutex; use axum::Router; +use axum::extract::FromRef; use axum::routing::{get, post}; use openidconnect::{ IntrospectionUrl, @@ -18,7 +19,7 @@ mod util; use crate::util::powerdns::PowerDnsApi; -#[derive(Clone)] +#[derive(Clone, FromRef)] pub struct AppState { oidc_client: CoreClient, pdns_client: PowerDnsApi,