1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/fetchers/edition_list_fetcher.js
2015-06-01 17:43:38 +02:00

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;