diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/routes.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php index 2b7a19f7d86..a9c800af4e8 100644 --- a/core/routes.php +++ b/core/routes.php @@ -108,6 +108,12 @@ $this->create('core_ajax_preview', '/core/preview.png') $this->create('core_ajax_update', '/core/ajax/update.php') ->actionInclude('core/ajax/update.php'); +// File routes +$this->create('files.viewcontroller.showFile', '/f/{fileId}')->action(function($urlParams) { + $app = new \OCA\Files\AppInfo\Application($urlParams); + $app->dispatch('ViewController', 'showFile'); +}); + // Sharing routes $this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(function($urlParams) { $app = new \OCA\Files_Sharing\AppInfo\Application($urlParams); |