mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-31 09:34:44 +00:00 
			
		
		
		
	Indicates that calls are disabled
This commit is contained in:
		
							
								
								
									
										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 | ||||
| @@ -157,5 +158,8 @@ 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)}, | ||||
| 	 | ||||
| ] | ||||
		Reference in New Issue
	
	Block a user