dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
15 lines • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCdnEndpoint = void 0;
const createCdnEndpoint = ({ httpClient, }) => ({ origin, ttl, certificate_id, custom_domain, }) => {
const url = '/cdn/endpoints';
const body = {
origin,
ttl,
certificate_id,
custom_domain,
};
return httpClient.post(url, body);
};
exports.createCdnEndpoint = createCdnEndpoint;
//# sourceMappingURL=create-cdn-endpoint.js.map