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

View File

@@ -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
};