diff options
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/state.rs b/src/state.rs index 1ae6caa..9129030 100644 --- a/src/state.rs +++ b/src/state.rs @@ -18,6 +18,7 @@ impl Deref for AppHandle { pub struct AppState { pub services: Services, + pub environment: Environment, } impl AppState { @@ -38,7 +39,10 @@ impl AppState { let config = FederationConfig::builder() .domain(&warden_config.hostname) .signed_fetch_actor(&user) - .app_data(AppHandle(Arc::new(Self { services }))) + .app_data(AppHandle(Arc::new(Self { + services, + environment: configuration.application.env, + }))) // .url_verifier(Box::new(MyUrlVerifier())) // TODO: could change this to env variable? .debug(configuration.application.env == Environment::Development) |