partey_workadventure/back/src/App.ts

33 lines
1.4 KiB
TypeScript
Raw Normal View History

// lib/app.ts
2020-04-05 14:31:49 +02:00
import {IoSocketController} from "./Controller/IoSocketController"; //TODO fix import by "_Controller/..."
import {AuthenticateController} from "./Controller/AuthenticateController"; //TODO fix import by "_Controller/..."
import {MapController} from "./Controller/MapController";
import {PrometheusController} from "./Controller/PrometheusController";
import {FileController} from "./Controller/FileController";
import {DebugController} from "./Controller/DebugController";
2020-09-28 18:52:54 +02:00
import {App as uwsApp} from "./Server/sifrr.server";
class App {
2020-09-28 18:52:54 +02:00
public app: uwsApp;
public ioSocketController: IoSocketController;
public authenticateController: AuthenticateController;
public fileController: FileController;
public mapController: MapController;
public prometheusController: PrometheusController;
private debugController: DebugController;
constructor() {
2020-09-28 18:52:54 +02:00
this.app = new uwsApp();
//create socket controllers
2020-09-28 18:52:54 +02:00
this.ioSocketController = new IoSocketController(this.app);
this.authenticateController = new AuthenticateController(this.app);
this.fileController = new FileController(this.app);
this.mapController = new MapController(this.app);
this.prometheusController = new PrometheusController(this.app, this.ioSocketController);
this.debugController = new DebugController(this.app, this.ioSocketController);
}
}
2020-09-28 18:52:54 +02:00
export default new App().app;