Removing dead code
This commit is contained in:
parent
d9c910cfca
commit
27871641aa
@ -17,9 +17,6 @@ class App {
|
|||||||
constructor() {
|
constructor() {
|
||||||
this.app = new uwsApp();
|
this.app = new uwsApp();
|
||||||
|
|
||||||
this.config();
|
|
||||||
this.crossOrigin();
|
|
||||||
|
|
||||||
//create socket controllers
|
//create socket controllers
|
||||||
this.ioSocketController = new IoSocketController(this.app);
|
this.ioSocketController = new IoSocketController(this.app);
|
||||||
this.authenticateController = new AuthenticateController(this.app);
|
this.authenticateController = new AuthenticateController(this.app);
|
||||||
@ -27,23 +24,6 @@ class App {
|
|||||||
this.prometheusController = new PrometheusController(this.app, this.ioSocketController);
|
this.prometheusController = new PrometheusController(this.app, this.ioSocketController);
|
||||||
this.debugController = new DebugController(this.app, this.ioSocketController);
|
this.debugController = new DebugController(this.app, this.ioSocketController);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO add session user
|
|
||||||
private config(): void {
|
|
||||||
/*this.app.use(bodyParser.json());
|
|
||||||
this.app.use(bodyParser.urlencoded({extended: false}));*/
|
|
||||||
}
|
|
||||||
|
|
||||||
private crossOrigin(){
|
|
||||||
/*this.app.use((req: Request, res: Response, next) => {
|
|
||||||
res.setHeader("Access-Control-Allow-Origin", "*"); // update to match the domain you will make the request from
|
|
||||||
// Request methods you wish to allow
|
|
||||||
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
|
|
||||||
// Request headers you wish to allow
|
|
||||||
res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
|
||||||
next();
|
|
||||||
});*/
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new App().app;
|
export default new App().app;
|
||||||
|
Loading…
Reference in New Issue
Block a user