migrate to "export default"

also, set no-use-before-define in linter
This commit is contained in:
Girish Ramakrishnan
2026-02-14 15:43:24 +01:00
parent ddb46646fa
commit 36aa641cb9
231 changed files with 2846 additions and 2728 deletions
+8 -7
View File
@@ -3,15 +3,9 @@ import AuditSource from '../auditsource.js';
import BoxError from '../boxerror.js';
import { HttpError } from '@cloudron/connect-lastmile';
import { HttpSuccess } from '@cloudron/connect-lastmile';
import * as reverseProxy from '../reverseproxy.js';
import reverseProxy from '../reverseproxy.js';
import safe from 'safetydance';
export {
getTrustedIps,
setTrustedIps,
renewCerts,
};
async function getTrustedIps(req, res, next) {
const [error, trustedIps] = await safe(reverseProxy.getTrustedIps());
@@ -40,3 +34,10 @@ async function renewCerts(req, res, next) {
next(new HttpSuccess(202, { taskId }));
}
export default {
getTrustedIps,
setTrustedIps,
renewCerts,
};