1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/js/fetchers/license_fetcher.js
2016-06-14 17:58:00 +02:00

18 lines
390 B
JavaScript

'use strict';
import requests from '../utils/requests';
import { getCurrentSubdomain } from '../utils/url';
let LicenseFetcher = {
/**
* Fetch the available licenses from the API (might be bound to the subdomain e.g. cc.ascribe.io).
*/
fetch() {
return requests.get('licenses', { 'subdomain': getCurrentSubdomain() });
}
};
export default LicenseFetcher;