mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
20 lines
416 B
JavaScript
20 lines
416 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
import EditionActions from '../actions/edition_actions';
|
|
|
|
|
|
const EditionSource = {
|
|
lookupEdition: {
|
|
remote(state, editionId) {
|
|
return requests.get('edition', { bitcoin_id: editionId });
|
|
},
|
|
|
|
success: EditionActions.successFetchEdition,
|
|
error: EditionActions.errorEdition
|
|
}
|
|
};
|
|
|
|
export default EditionSource;
|