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
+9 -8
View File
@@ -6,20 +6,16 @@ import eventlog from './eventlog.js';
import express from 'express';
import http from 'node:http';
import { HttpError } from '@cloudron/connect-lastmile';
import * as middleware from './middleware/index.js';
import * as platform from './platform.js';
import * as routes from './routes/index.js';
import middleware from './middleware/index.js';
import platform from './platform.js';
import routes from './routes/index.js';
import safe from 'safetydance';
import * as users from './users.js';
import users from './users.js';
import util from 'node:util';
import ws from 'ws';
const debug = debugModule('box:server');
export {
start,
stop
};
let gHttpServer = null;
@@ -534,3 +530,8 @@ async function stop() {
gHttpServer = null;
}
export default {
start,
stop
};