1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-09 13:21:44 +01:00
onion/js/fetchers/license_fetcher.js

18 lines
390 B
JavaScript
Raw Normal View History

2015-06-30 10:42:58 +02:00
'use strict';
import requests from '../utils/requests';
2016-06-13 17:33:47 +02:00
import { getCurrentSubdomain } from '../utils/url';
2015-06-30 10:42:58 +02:00
let LicenseFetcher = {
/**
* Fetch the available licenses from the API (might be bound to the subdomain e.g. cc.ascribe.io).
*/
fetch() {
2016-06-13 17:33:47 +02:00
return requests.get('licenses', { 'subdomain': getCurrentSubdomain() });
2015-06-30 10:42:58 +02:00
}
};
export default LicenseFetcher;