We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b0fd2 commit 0628fecCopy full SHA for 0628fec
sentry/src/routes/cfg.rs
@@ -1,5 +1,7 @@
1
//! `GET /cfg` request
2
3
+use std::sync::Arc;
4
+
5
use adapter::client::Locked;
6
use axum::{Extension, Json};
7
use hyper::{header::CONTENT_TYPE, Body, Request, Response};
@@ -10,7 +12,7 @@ use crate::{response::ResponseError, Application};
10
12
11
13
/// `GET /cfg` request
14
pub async fn config_axum<C: Locked + 'static>(
- Extension(app): Extension<Application<C>>,
15
+ Extension(app): Extension<Arc<Application<C>>>,
16
) -> Json<Config> {
17
Json(app.config.clone())
18
}
0 commit comments