migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user