修复了上传种子bug
Change-Id: I8b48880bafb43632f20cf2f07b43096efe5bead0
diff --git a/src/api/torrent.js b/src/api/torrent.js
index 3c93697..f5df487 100644
--- a/src/api/torrent.js
+++ b/src/api/torrent.js
@@ -81,7 +81,7 @@
*/
export function getTorrentDetail(infoHash) {
return request({
- url: `/api/torrent/${infoHash}`,
+ url: `/torrent/${infoHash}`,
method: 'get'
})
}
@@ -93,7 +93,7 @@
*/
export function getTorrents(params) {
return request({
- url: '/api/torrents',
+ url: '/torrents',
method: 'get',
params
})