diff --git a/aquatic_http_private/README.md b/aquatic_http_private/README.md index 22aa65c..904897e 100644 --- a/aquatic_http_private/README.md +++ b/aquatic_http_private/README.md @@ -47,4 +47,4 @@ Run application: cargo run -p aquatic_http_private ``` -Test by visiting `localhost:3000/abcd/announce/?info_hash=abcdeabcdeabcdeabcde&peer_id=abcdeabcdeabcdeabcde&port=1000&left=0` \ No newline at end of file +Test by visiting `localhost:3000/announce/abcd/?info_hash=abcdeabcdeabcdeabcde&peer_id=abcdeabcdeabcdeabcde&port=1000&left=0` \ No newline at end of file diff --git a/aquatic_http_private/src/workers/socket/mod.rs b/aquatic_http_private/src/workers/socket/mod.rs index 52ecbc9..5f38a85 100644 --- a/aquatic_http_private/src/workers/socket/mod.rs +++ b/aquatic_http_private/src/workers/socket/mod.rs @@ -41,7 +41,7 @@ async fn run_app( .await?; let app = Router::new() - .route("/:user_token/announce/", get(routes::announce)) + .route("/announce/:user_token/", get(routes::announce)) .layer(Extension(Arc::new(config))) .layer(Extension(pool)) .layer(Extension(Arc::new(request_sender)));