diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-11-16 20:57:41 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-11-16 21:10:11 +0100 |
commit | daa388ce8d8ea653d3cae2e016cabd266d19d674 (patch) | |
tree | a59d35736549945654460e7746f37db0aea185c5 /apps/files/appinfo/routes.php | |
parent | 5ec64c4fd7f087027ef945c4d694de1d90bbd814 (diff) | |
download | nextcloud-server-daa388ce8d8ea653d3cae2e016cabd266d19d674.tar.gz nextcloud-server-daa388ce8d8ea653d3cae2e016cabd266d19d674.zip |
Move index.php from files to AppFramework
1. Allows it to use the more secure CSP rules of the AppFramework.
2. Adds some unit tests.
Diffstat (limited to 'apps/files/appinfo/routes.php')
-rw-r--r-- | apps/files/appinfo/routes.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index d52dfaab21c..2bb913c30a6 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -48,14 +48,17 @@ $application->registerRoutes( 'verb' => 'GET', 'requirements' => array('tagName' => '.+'), ), + [ + 'name' => 'view#index', + 'url' => '/', + 'verb' => 'GET', + ], ) ) ); /** @var $this \OC\Route\Router */ -$this->create('files_index', '/') - ->actionInclude('files/index.php'); $this->create('files_ajax_delete', 'ajax/delete.php') ->actionInclude('files/ajax/delete.php'); $this->create('files_ajax_download', 'ajax/download.php') |