fix: drop .torrent extension from route — axum disallows mixed literal+param in path segment

This commit is contained in:
2026-05-17 23:41:20 -07:00
parent 18326cbbfd
commit cb1f2df8ee
+1 -1
View File
@@ -23,7 +23,7 @@ pub fn router() -> Router<AppState> {
.route("/ui/publishers/{pubkey}/unblock", post(publishers::unblock_handler))
.route("/ui/publishers/{pubkey}/mute", post(publishers::mute_handler))
.route("/ui/published", get(published::handler))
.route("/torrent/{info_hash}.torrent", get(torrent_blob_handler))
.route("/torrent/{info_hash}", get(torrent_blob_handler))
}
/// Serve a cached .torrent file by info_hash.