mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
18 lines
385 B
JavaScript
18 lines
385 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
import { getSubdomain } from '../utils/general_utils';
|
|
|
|
|
|
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': getSubdomain() });
|
|
}
|
|
};
|
|
|
|
export default LicenseFetcher;
|