Allow to use short URLs for calls

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-03-24 11:52:42 +01:00
parent 34f0ad4ebe
commit bc11c7ba97
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 6 additions and 0 deletions

View 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);