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:
parent
65d07f0f4a
commit
506f75f6f1
24
src/controllers/CallsController.ts
Normal file
24
src/controllers/CallsController.ts
Normal 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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -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)},
|
||||
|
||||
]
|
Loading…
Reference in New Issue
Block a user