24 lines
617 B
TypeScript
24 lines
617 B
TypeScript
import type DcRouter from '../classes.dcrouter.js';
|
|
import * as plugins from '../plugins.js';
|
|
import * as paths from '../paths.js';
|
|
|
|
export class OpsServer {
|
|
public dcRouterRef: DcRouter;
|
|
public server: plugins.typedserver.utilityservers.UtilityWebsiteServer;
|
|
|
|
constructor(dcRouterRefArg: DcRouter) {
|
|
this.dcRouterRef = dcRouterRefArg;
|
|
}
|
|
|
|
public async start() {
|
|
this.server = new plugins.typedserver.utilityservers.UtilityWebsiteServer({
|
|
domain: 'localhost',
|
|
feedMetadata: null,
|
|
serveDir: paths.distServe,
|
|
});
|
|
|
|
await this.server.start(3000);
|
|
}
|
|
|
|
public async stop() {}
|
|
} |