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