This commit is contained in:
2024-01-08 02:38:20 +01:00
parent b21f70cb8f
commit 171e7ffacf

View File

@@ -97,8 +97,8 @@ pub async fn start_axum_server(stop_signal: Arc<AtomicBool>) {
let app_router = axum::Router::new()
.route("/:token/", post(telegram_request))
.layer(prometheus_layer)
.with_state(start_bot_mutex);
.with_state(start_bot_mutex)
.layer(prometheus_layer);
let metric_router =
axum::Router::new().route("/metrics", get(|| async move { metric_handle.render() }));