1
0
mirror of https://github.com/ascribe/onion.git synced 2024-09-28 12:08:55 +02:00
onion/js/fetchers/edition_fetcher.js

18 lines
368 B
JavaScript
Raw Normal View History

2015-06-01 14:22:04 +02:00
import fetch from '../utils/fetch';
import AppConstants from '../constants/application_constants';
2015-05-26 13:48:46 +02:00
let EditionFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*
*/
2015-05-26 14:58:11 +02:00
fetchOne(editionId) {
2015-06-01 14:22:04 +02:00
return fetch.get('edition', {'bitcoin_id': editionId});
}
};
2015-05-26 13:48:46 +02:00
export default EditionFetcher;