workadventure/back/src/App.ts

20 lines
573 B
TypeScript
Raw Normal View History

// lib/app.ts
2021-06-24 10:09:10 +02:00
import { PrometheusController } from "./Controller/PrometheusController";
import { DebugController } from "./Controller/DebugController";
import { App as uwsApp } from "./Server/sifrr.server";
class App {
2020-09-28 18:52:54 +02:00
public app: uwsApp;
public prometheusController: PrometheusController;
private debugController: DebugController;
constructor() {
2020-09-28 18:52:54 +02:00
this.app = new uwsApp();
this.prometheusController = new PrometheusController(this.app);
this.debugController = new DebugController(this.app);
}
}
2020-09-28 18:52:54 +02:00
export default new App().app;