UNPKG

ts-mailcow-api

Version:
27 lines 853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.forwardingEndpoints = forwardingEndpoints; const FORWARDING_ENDPOINTS = { DELETE: 'delete/fwdhost', CREATE: 'add/fwdhost', GET_ALL: 'get/fwdhost/all', }; /** * Binder function between the MailcowClient class and the ForwardingEndpoints. * @param bind - The MailcowClient to bind. * @internal */ function forwardingEndpoints(bind) { return { delete(payload) { return bind.requestFactory.post(FORWARDING_ENDPOINTS.DELETE, payload.items); }, create(payload) { return bind.requestFactory.post(FORWARDING_ENDPOINTS.CREATE, payload); }, getAll() { return bind.requestFactory.get(FORWARDING_ENDPOINTS.GET_ALL); }, }; } //# sourceMappingURL=forwarding-endpoints.js.map