mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
18 lines
368 B
JavaScript
18 lines
368 B
JavaScript
import fetch from '../utils/fetch';
|
|
|
|
import AppConstants from '../constants/application_constants';
|
|
|
|
|
|
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;
|