From 6a5ce421b9428a8bdfb5951abefc3d0370f8c056 Mon Sep 17 00:00:00 2001 From: spinline Date: Tue, 3 Feb 2026 22:58:08 +0300 Subject: [PATCH] fix(backend): update router paths to axum 0.8 syntax --- backend/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index 6ea2bd8..e780da1 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -194,15 +194,15 @@ async fn main() { ) .route("/api/system/version", get(handlers::get_version_handler)) .route( - "/api/torrents/:hash/files", + "/api/torrents/{hash}/files", get(handlers::get_files_handler), ) .route( - "/api/torrents/:hash/peers", + "/api/torrents/{hash}/peers", get(handlers::get_peers_handler), ) .route( - "/api/torrents/:hash/trackers", + "/api/torrents/{hash}/trackers", get(handlers::get_trackers_handler), ) .route(