Update axum to 0.8

This commit is contained in:
2025-01-04 14:37:29 +01:00
parent 9e06cbaf12
commit 732ba78b7e
3 changed files with 188 additions and 82 deletions

View File

@@ -101,7 +101,7 @@ pub async fn start_axum_server(stop_signal: Arc<AtomicBool>) {
let start_bot_mutex = Arc::new(Mutex::new(()));
let app_router = axum::Router::new()
.route("/:token/", post(telegram_request))
.route("/{token}/", post(telegram_request))
.with_state(start_bot_mutex)
.layer(prometheus_layer);