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