migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
@@ -5,20 +5,12 @@ import debugModule from 'debug';
|
||||
import http from 'node:http';
|
||||
import { HttpError } from '@cloudron/connect-lastmile';
|
||||
import { HttpSuccess } from '@cloudron/connect-lastmile';
|
||||
import * as mailServer from '../mailserver.js';
|
||||
import mailServer from '../mailserver.js';
|
||||
import safe from 'safetydance';
|
||||
import services from '../services.js';
|
||||
|
||||
const debug = debugModule('box:routes/mailserver');
|
||||
|
||||
export {
|
||||
proxy,
|
||||
proxyAndRestart,
|
||||
queueProxy,
|
||||
|
||||
setLocation,
|
||||
getLocation
|
||||
};
|
||||
|
||||
async function proxyToMailContainer(port, pathname, req, res, next) {
|
||||
req.clearTimeout();
|
||||
@@ -95,3 +87,12 @@ async function setLocation(req, res, next) {
|
||||
|
||||
next(new HttpSuccess(202, { taskId }));
|
||||
}
|
||||
|
||||
export default {
|
||||
proxy,
|
||||
proxyAndRestart,
|
||||
queueProxy,
|
||||
|
||||
setLocation,
|
||||
getLocation
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user