mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
16 lines
327 B
JavaScript
16 lines
327 B
JavaScript
import fetch from '../utils/fetch';
|
|
|
|
import AppConstants from '../constants/application_constants';
|
|
|
|
|
|
let EditionListFetcher = {
|
|
/**
|
|
* Fetches a list of editions from the API.
|
|
*/
|
|
fetch(pieceId) {
|
|
return fetch.get('editions_list', { 'piece_id': pieceId });
|
|
}
|
|
};
|
|
|
|
export default EditionListFetcher;
|