1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/fetchers/piece_fetcher.js

18 lines
333 B
JavaScript
Raw Normal View History

2015-06-01 17:43:38 +02:00
import fetch from '../utils/fetch';
2015-05-26 10:41:41 +02:00
import AppConstants from '../constants/application_constants';
let PieceFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*
*/
fetchOne(pieceId) {
2015-06-01 17:43:38 +02:00
return fetch.get('piece');
2015-05-26 10:41:41 +02:00
}
};
export default PieceFetcher;