Safety note

This commit is contained in:
Igor Katson 2021-10-10 11:43:44 +01:00
parent 9b73a8ff2f
commit 218aa4d9ee

View file

@ -232,6 +232,8 @@ impl HttpApi {
"GET /torrents/{index}": "Torrent details",
"GET /torrents/{index}/haves": "The bitfield of have pieces",
"GET /torrents/{index}/stats": "Torrent stats",
// This is kind of not secure as it just reads any local file that it has access to,
// or any URL, but whatever, ok for our purposes / thread model.
"POST /torrents/": "Add a torrent here. magnet: or http:// or a local file."
}
});