1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-05 19:25:42 +01:00
onion/js/fetchers/edition_fetcher.js
2015-06-01 14:22:04 +02:00

19 lines
422 B
JavaScript

import fetch from '../utils/fetch';
import AppConstants from '../constants/application_constants';
import FetchApiUtils from '../utils/fetch_api_utils';
let EditionFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*
*/
fetchOne(editionId) {
return fetch.get('edition', {'bitcoin_id': editionId});
}
};
export default EditionFetcher;