mirror of
https://github.com/zoriya/flood.git
synced 2025-12-21 14:45:14 +00:00
Adjust Add Torrent action payload
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import axios from 'axios';
|
||||
|
||||
export function addTorrent(hashes) {
|
||||
export function addTorrents(urls, destination) {
|
||||
return function(dispatch) {
|
||||
return axios.post('/torrents/add', {
|
||||
hashes
|
||||
urls,
|
||||
destination
|
||||
})
|
||||
.then((json = {}) => {
|
||||
return json.data;
|
||||
@@ -22,8 +23,6 @@ export function addTorrent(hashes) {
|
||||
}
|
||||
};
|
||||
|
||||
// CLIENT_RECEIVE_TRANSFER_DATA
|
||||
|
||||
export function fetchTransferData() {
|
||||
return function(dispatch) {
|
||||
return axios.get('/client/stats')
|
||||
|
||||
Reference in New Issue
Block a user