added a register route via token
This commit is contained in:
parent
1ccbea30e4
commit
ed9552b62b
7 changed files with 76 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue