Skip to content

Commit f2514ea

Browse files
committed
Merge #7: api: fix axum api path variables
4031dbe api: fix axum api path variables (Marcel) Pull request description: ACKs for top commit: josecelano: ACK 4031dbe Tree-SHA512: 58924ee20df79426e556daee217b227c0a47268c42f56254f6a2e5bdcf9e6ac6e749957bec61c645db5e988f1b6f391ca46e5b70e1a646875852f65d7d2ac0a3
2 parents b728980 + 4031dbe commit f2514ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub async fn start(bind_to: &SocketAddr, state: AppState) {
4545
let app = Router::new()
4646
.route("/", get(entrypoint_handler))
4747
.route("/health_check", get(health_check_handler))
48-
.route("/torrents/:info_hash", get(get_metainfo_file_handler))
48+
.route("/torrents/{info_hash}", get(get_metainfo_file_handler))
4949
.layer(TraceLayer::new_for_http())
5050
.layer(
5151
ServiceBuilder::new()

0 commit comments

Comments
 (0)