migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
@@ -5,20 +5,16 @@ import express from 'express';
|
||||
import debugModule from 'debug';
|
||||
import http from 'node:http';
|
||||
import { HttpError } from '@cloudron/connect-lastmile';
|
||||
import * as middleware from './middleware/index.js';
|
||||
import middleware from './middleware/index.js';
|
||||
import net from 'node:net';
|
||||
import path from 'node:path';
|
||||
import paths from './paths.js';
|
||||
import safe from 'safetydance';
|
||||
import util from 'node:util';
|
||||
import * as volumes from './volumes.js';
|
||||
import volumes from './volumes.js';
|
||||
|
||||
const debug = debugModule('box:dockerproxy');
|
||||
|
||||
export {
|
||||
start,
|
||||
stop
|
||||
};
|
||||
|
||||
let gHttpServer = null;
|
||||
|
||||
@@ -191,3 +187,8 @@ async function stop() {
|
||||
await util.promisify(gHttpServer.close.bind(gHttpServer))();
|
||||
gHttpServer = null;
|
||||
}
|
||||
|
||||
export default {
|
||||
start,
|
||||
stop
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user