added a register route via token
This commit is contained in:
@@ -7,6 +7,7 @@ import bodyParser = require('body-parser');
|
||||
import * as http from "http";
|
||||
import {MapController} from "./Controller/MapController";
|
||||
import {PrometheusController} from "./Controller/PrometheusController";
|
||||
import {AdminController} from "./Controller/AdminController";
|
||||
|
||||
class App {
|
||||
public app: Application;
|
||||
@@ -15,6 +16,7 @@ class App {
|
||||
public authenticateController: AuthenticateController;
|
||||
public mapController: MapController;
|
||||
public prometheusController: PrometheusController;
|
||||
private adminController: AdminController;
|
||||
|
||||
constructor() {
|
||||
this.app = express();
|
||||
@@ -32,6 +34,7 @@ class App {
|
||||
this.authenticateController = new AuthenticateController(this.app);
|
||||
this.mapController = new MapController(this.app);
|
||||
this.prometheusController = new PrometheusController(this.app, this.ioSocketController);
|
||||
this.adminController = new AdminController(this.app);
|
||||
}
|
||||
|
||||
// TODO add session user
|
||||
|
||||
Reference in New Issue
Block a user