1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-25 23:09:22 +00:00

Indicates that calls are disabled

This commit is contained in:
Pierre HUBERT 2019-12-28 16:58:06 +01:00
parent 65d07f0f4a
commit 506f75f6f1
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import { RequestHandler } from "../entities/RequestHandler";
/**
* Legacy calls controller
*
* @author Pierre HUBERT
*/
export class CallsController {
/**
* Get calls config
*
* This version of the API DOES NOT SUPPORT calls system for
* now. It is planned to reimagine it completely before attempting
* an implementation...
*/
public static GetConfig(h: RequestHandler) {
h.send({
enabled: false
});
}
}

View File

@ -8,6 +8,7 @@ import { GroupsController } from "./GroupsController";
import { NotificationsController } from "./NotificationsController";
import { VirtualDirectoryController } from "./VirtualDirectoryController";
import { WebAppControllers } from "./WebAppController";
import { CallsController } from "./CallsController";
/**
* Controllers routes
@ -158,4 +159,7 @@ export const Routes : Route[] = [
// Web app controller
{path: "/webApp/getMemberships", cb: (h) => WebAppControllers.GetMemberships(h)},
// Calls controller
{path: "/calls/config", cb: (h) => CallsController.GetConfig(h)},
]