update URL for streams

This commit is contained in:
Igor Katson 2024-04-29 19:01:04 +01:00
parent da3e199c91
commit ea2dfd0500
7 changed files with 25 additions and 8 deletions

View file

@ -281,7 +281,11 @@ impl HttpApi {
.route("/torrents/:id/stats", get(torrent_stats_v0))
.route("/torrents/:id/stats/v1", get(torrent_stats_v1))
.route("/torrents/:id/peer_stats", get(peer_stats))
.route("/torrents/:id/stream/:file_id", get(torrent_stream_file));
.route("/torrents/:id/stream/:file_id", get(torrent_stream_file))
.route(
"/torrents/:id/stream/:file_id/*filename",
get(torrent_stream_file),
);
if !self.opts.read_only {
app = app