fix: drop .torrent extension from route — axum disallows mixed literal+param in path segment
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user