1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-24 02:16:10 +01:00
onion/js/components/whitelabel/prize/fetchers/prize_jury_fetcher.js

25 lines
460 B
JavaScript
Raw Normal View History

2015-08-05 14:40:26 +02:00
'use strict';
import requests from '../../../../utils/requests';
let PrizeJuryFetcher = {
fetch() {
return requests.get('jurys');
},
activate(email) {
return requests.post('jury_activate', {'email': email});
},
delete(email) {
return requests.delete('jury', {'email': email});
},
resend(email) {
return requests.post('jury_resend', {'email': email});
2015-08-05 14:40:26 +02:00
}
};
export default PrizeJuryFetcher;