mirror of
https://github.com/ascribe/onion.git
synced 2025-01-05 11:25:09 +01:00
19 lines
422 B
JavaScript
19 lines
422 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import requests from '../utils/requests';
|
||
|
|
||
|
import EditionActions from '../actions/edition_actions';
|
||
|
|
||
|
|
||
|
const EditionSource = {
|
||
|
lookupEdition: {
|
||
|
remote(state) {
|
||
|
return requests.get('edition', { bitcoin_id: state.editionMeta.idToFetch });
|
||
|
},
|
||
|
|
||
|
success: EditionActions.successFetchEdition,
|
||
|
error: EditionActions.errorEdition
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default EditionSource;
|