1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/fetchers/piece_fetcher.js

16 lines
245 B
JavaScript
Raw Normal View History

'use strict';
2015-05-26 10:41:41 +02:00
import requests from '../utils/requests';
2015-05-26 10:41:41 +02:00
let PieceFetcher = {
/**
2015-07-08 22:54:07 +02:00
* Fetch a piece from the API.
2015-05-26 10:41:41 +02:00
*/
2015-07-08 22:54:07 +02:00
fetchOne(id) {
return requests.get('piece', {'piece_id': id});
2015-05-26 10:41:41 +02:00
}
};
export default PieceFetcher;