]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow to use short URLs for calls
authorJoas Schilling <coding@schilljs.com>
Fri, 24 Mar 2017 10:52:42 +0000 (11:52 +0100)
committerJoas Schilling <coding@schilljs.com>
Fri, 24 Mar 2017 10:52:42 +0000 (11:52 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/routes.php

index 5d61d58e03795508f7a78ccac728f92905c268d6..5243691df47642a4b70631aa39e68786d001f922 100644 (file)
@@ -82,6 +82,12 @@ $this->create('files.viewcontroller.showFile', '/f/{fileid}')->action(function($
        $app->dispatch('ViewController', 'index');
 });
 
+// Call routes
+$this->create('spreed.pagecontroller.showCall', '/call/{token}')->action(function($urlParams) {
+       $app = new \OCA\Spreed\AppInfo\Application($urlParams);
+       $app->dispatch('PageController', 'index');
+});
+
 // Sharing routes
 $this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(function($urlParams) {
        $app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);