mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -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() }));
|
||||
|
||||
Reference in New Issue
Block a user