Create file controller to upload audio document

This commit is contained in:
Gregoire Parant 2020-09-20 19:01:21 +02:00
parent 45ad4bbb36
commit 844bffa988
6 changed files with 171 additions and 19 deletions

View file

@ -7,12 +7,14 @@ import bodyParser = require('body-parser');
import * as http from "http";
import {MapController} from "./Controller/MapController";
import {PrometheusController} from "./Controller/PrometheusController";
import {FileController} from "./Controller/FileController";
class App {
public app: Application;
public server: http.Server;
public ioSocketController: IoSocketController;
public authenticateController: AuthenticateController;
public fileController: FileController;
public mapController: MapController;
public prometheusController: PrometheusController;
@ -30,6 +32,7 @@ class App {
//create socket controllers
this.ioSocketController = new IoSocketController(this.server);
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);
}