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

17 lines
278 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 = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*/
fetchOne() {
return requests.get('piece');
2015-05-26 10:41:41 +02:00
}
};
export default PieceFetcher;