2020-04-04 04:08:12 +02:00
|
|
|
// lib/app.ts
|
2020-06-09 11:49:23 +02:00
|
|
|
import {PrometheusController} from "./Controller/PrometheusController";
|
2020-09-25 13:48:02 +02:00
|
|
|
import {DebugController} from "./Controller/DebugController";
|
2020-09-28 18:52:54 +02:00
|
|
|
import {App as uwsApp} from "./Server/sifrr.server";
|
2020-04-04 04:08:12 +02:00
|
|
|
|
|
|
|
class App {
|
2020-09-28 18:52:54 +02:00
|
|
|
public app: uwsApp;
|
2020-06-09 11:49:23 +02:00
|
|
|
public prometheusController: PrometheusController;
|
2020-09-25 15:25:06 +02:00
|
|
|
private debugController: DebugController;
|
2020-04-04 04:08:12 +02:00
|
|
|
|
|
|
|
constructor() {
|
2020-09-28 18:52:54 +02:00
|
|
|
this.app = new uwsApp();
|
2020-05-10 17:31:27 +02:00
|
|
|
|
2020-10-15 17:25:16 +02:00
|
|
|
this.prometheusController = new PrometheusController(this.app);
|
|
|
|
this.debugController = new DebugController(this.app);
|
2020-04-04 04:08:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-28 18:52:54 +02:00
|
|
|
export default new App().app;
|