UNPKG

ts-mailcow-api

Version:
23 lines 663 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fail2BanEndpoints = fail2BanEndpoints; const FAIL2BAN_ENDPOINTS = { EDIT: 'edit/fail2ban', GET: 'get/fail2ban', }; /** * Binder function between the MailcowClient class and the Fail2BanEndpoints. * @param bind - The MailcowClient to bind. * @internal */ function fail2BanEndpoints(bind) { return { edit(payload) { return bind.requestFactory.post(FAIL2BAN_ENDPOINTS.EDIT, payload); }, get() { return bind.requestFactory.get(FAIL2BAN_ENDPOINTS.GET); }, }; } //# sourceMappingURL=fail2ban-endpoints.js.map