mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
30 lines
707 B
JavaScript
30 lines
707 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
|
|
let NotificationFetcher = {
|
|
|
|
fetchPieceListNotifications() {
|
|
return requests.get('notification_piecelist');
|
|
},
|
|
|
|
fetchPieceNotifications(pieceId) {
|
|
return requests.get('notification_piece', {'piece_id': pieceId});
|
|
},
|
|
|
|
fetchEditionListNotifications() {
|
|
return requests.get('notification_editionlist');
|
|
},
|
|
|
|
fetchEditionNotifications(editionId) {
|
|
return requests.get('notification_edition', {'edition_id': editionId});
|
|
},
|
|
|
|
fetchContractAgreementListNotifications() {
|
|
return requests.get('notification_contractagreementlist');
|
|
}
|
|
};
|
|
|
|
export default NotificationFetcher;
|