|
@@ -6,6 +6,7 @@ import { Logger } from '../../common/util/logger.class';
|
|
|
|
|
|
|
|
import { ControllerPool } from './ctrl/controller-pool.interface';
|
|
import { ControllerPool } from './ctrl/controller-pool.interface';
|
|
|
import { ValidationException } from './lib/validation-exception.class';
|
|
import { ValidationException } from './lib/validation-exception.class';
|
|
|
|
|
+import { FCMAPIHandler } from './webhdl/fcm-api-handler.class';
|
|
|
import { ServerAPIHandler } from './webhdl/server-api-handler.class';
|
|
import { ServerAPIHandler } from './webhdl/server-api-handler.class';
|
|
|
import { ServicesAPIHandler } from './webhdl/services-api-handler.class';
|
|
import { ServicesAPIHandler } from './webhdl/services-api-handler.class';
|
|
|
|
|
|
|
@@ -15,6 +16,8 @@ export class Webserver {
|
|
|
constructor(private port: number, ctrlPool: ControllerPool) {
|
|
constructor(private port: number, ctrlPool: ControllerPool) {
|
|
|
this.app = express();
|
|
this.app = express();
|
|
|
|
|
|
|
|
|
|
+ const fcmApi = new FCMAPIHandler(ctrlPool);
|
|
|
|
|
+ this.app.use('/fcm', fcmApi.router);
|
|
|
const serverApi = new ServerAPIHandler(ctrlPool);
|
|
const serverApi = new ServerAPIHandler(ctrlPool);
|
|
|
this.app.use('/server', serverApi.router);
|
|
this.app.use('/server', serverApi.router);
|
|
|
const servicesApi = new ServicesAPIHandler(ctrlPool);
|
|
const servicesApi = new ServicesAPIHandler(ctrlPool);
|