2020-11-13 18:00:22 +01:00
|
|
|
// lib/app.ts
|
2021-06-24 10:09:10 +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 { DebugController } from "./Controller/DebugController";
|
|
|
|
import { App as uwsApp } from "./Server/sifrr.server";
|
|
|
|
import { AdminController } from "./Controller/AdminController";
|
2021-11-12 20:48:26 +01:00
|
|
|
import { OpenIdProfileController } from "./Controller/OpenIdProfileController";
|
2020-11-13 18:00:22 +01:00
|
|
|
|
|
|
|
class App {
|
|
|
|
public app: uwsApp;
|
|
|
|
public ioSocketController: IoSocketController;
|
|
|
|
public authenticateController: AuthenticateController;
|
|
|
|
public mapController: MapController;
|
|
|
|
public prometheusController: PrometheusController;
|
|
|
|
private debugController: DebugController;
|
2021-03-01 17:47:00 +01:00
|
|
|
private adminController: AdminController;
|
2021-11-12 20:48:26 +01:00
|
|
|
private openIdProfileController: OpenIdProfileController;
|
2020-11-13 18:00:22 +01:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.app = new uwsApp();
|
|
|
|
|
|
|
|
//create socket controllers
|
|
|
|
this.ioSocketController = new IoSocketController(this.app);
|
|
|
|
this.authenticateController = new AuthenticateController(this.app);
|
|
|
|
this.mapController = new MapController(this.app);
|
|
|
|
this.prometheusController = new PrometheusController(this.app);
|
|
|
|
this.debugController = new DebugController(this.app);
|
2021-03-01 17:47:00 +01:00
|
|
|
this.adminController = new AdminController(this.app);
|
2021-11-12 20:48:26 +01:00
|
|
|
this.openIdProfileController = new OpenIdProfileController(this.app);
|
2020-11-13 18:00:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default new App().app;
|