diff options
author | blizzz <blizzz@owncloud.com> | 2014-08-21 19:59:31 +0200 |
---|---|---|
committer | blizzz <blizzz@owncloud.com> | 2014-08-21 19:59:31 +0200 |
commit | 52d5429768acdb87b2dc2efedc89eb4ad0d29139 (patch) | |
tree | 6ab5900a70361bbf13633e1b1ca7310e08011ee5 /apps | |
parent | 9c980954f4cbb0ff023f5065d64b3eb931914be0 (diff) | |
parent | ab12bd292d1ac44db427332c265fa58bcf4c3cb4 (diff) | |
download | nextcloud-server-52d5429768acdb87b2dc2efedc89eb4ad0d29139.tar.gz nextcloud-server-52d5429768acdb87b2dc2efedc89eb4ad0d29139.zip |
Merge pull request #10522 from owncloud/removeLoadAppScript
Remove loadAppScriptFile
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/appinfo/routes.php | 27 | ||||
-rw-r--r-- | apps/files_encryption/appinfo/routes.php | 13 | ||||
-rw-r--r-- | apps/files_sharing/appinfo/routes.php | 12 | ||||
-rw-r--r-- | apps/files_trashbin/appinfo/routes.php | 9 | ||||
-rw-r--r-- | apps/files_versions/appinfo/routes.php | 5 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/routes.php | 22 |
6 files changed, 84 insertions, 4 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index f3d8e9a4f4d..4d77065a347 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -6,6 +6,33 @@ * See the COPYING-README file. */ +/** @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') + ->actionInclude('files/ajax/download.php'); +$this->create('files_ajax_getstoragestats', 'ajax/getstoragestats.php') + ->actionInclude('files/ajax/getstoragestats.php'); +$this->create('files_ajax_list', 'ajax/list.php') + ->actionInclude('files/ajax/list.php'); +$this->create('files_ajax_mimeicon', 'ajax/mimeicon.php') + ->actionInclude('files/ajax/mimeicon.php'); +$this->create('files_ajax_move', 'ajax/move.php') + ->actionInclude('files/ajax/move.php'); +$this->create('files_ajax_newfile', 'ajax/newfile.php') + ->actionInclude('files/ajax/newfile.php'); +$this->create('files_ajax_newfolder', 'ajax/newfolder.php') + ->actionInclude('files/ajax/newfolder.php'); +$this->create('files_ajax_rename', 'ajax/rename.php') + ->actionInclude('files/ajax/rename.php'); +$this->create('files_ajax_scan', 'ajax/scan.php') + ->actionInclude('files/ajax/scan.php'); +$this->create('files_ajax_upload', 'ajax/upload.php') + ->actionInclude('files/ajax/upload.php'); + $this->create('download', 'download{file}') ->requirements(array('file' => '.*')) ->actionInclude('files/download.php'); diff --git a/apps/files_encryption/appinfo/routes.php b/apps/files_encryption/appinfo/routes.php index 07ff920a60d..97635ae1236 100644 --- a/apps/files_encryption/appinfo/routes.php +++ b/apps/files_encryption/appinfo/routes.php @@ -5,5 +5,18 @@ * See the COPYING-README file. */ +/** @var $this \OCP\Route\IRouter */ + +$this->create('files_encryption_ajax_adminrecovery', 'ajax/adminrecovery.php') + ->actionInclude('files_encryption/ajax/adminrecovery.php'); +$this->create('files_encryption_ajax_changeRecoveryPassword', 'ajax/changeRecoveryPassword.php') + ->actionInclude('files_encryption/ajax/changeRecoveryPassword.php'); +$this->create('files_encryption_ajax_getMigrationStatus', 'ajax/getMigrationStatus.php') + ->actionInclude('files_encryption/ajax/getMigrationStatus.php'); +$this->create('files_encryption_ajax_updatePrivateKeyPassword', 'ajax/updatePrivateKeyPassword.php') + ->actionInclude('files_encryption/ajax/updatePrivateKeyPassword.php'); +$this->create('files_encryption_ajax_userrecovery', 'ajax/userrecovery.php') + ->actionInclude('files_encryption/ajax/userrecovery.php'); + // Register with the capabilities API OC_API::register('get', '/cloud/capabilities', array('OCA\Encryption\Capabilities', 'getCapabilities'), 'files_encryption', OC_API::USER_AUTH); diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php index e68b953fc05..d5a48025d4a 100644 --- a/apps/files_sharing/appinfo/routes.php +++ b/apps/files_sharing/appinfo/routes.php @@ -5,10 +5,14 @@ $this->create('core_ajax_public_preview', '/publicpreview')->action( require_once __DIR__ . '/../ajax/publicpreview.php'; }); -$this->create('sharing_external_shareinfo', '/shareinfo')->actionInclude('files_sharing/ajax/shareinfo.php'); -$this->create('sharing_external_add', '/external')->actionInclude('files_sharing/ajax/external.php'); -$this->create('sharing_external_test_remote', '/testremote')->actionInclude('files_sharing/ajax/testremote.php'); - +$this->create('files_sharing_ajax_list', 'ajax/list.php') + ->actionInclude('files_sharing/ajax/list.php'); +$this->create('sharing_external_shareinfo', '/shareinfo') + ->actionInclude('files_sharing/ajax/shareinfo.php'); +$this->create('sharing_external_add', '/external') + ->actionInclude('files_sharing/ajax/external.php'); +$this->create('sharing_external_test_remote', '/testremote') + ->actionInclude('files_sharing/ajax/testremote.php'); // OCS API //TODO: SET: mail notification, waiting for PR #4689 to be accepted diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php index 42398a06c8b..da268f4fdfd 100644 --- a/apps/files_trashbin/appinfo/routes.php +++ b/apps/files_trashbin/appinfo/routes.php @@ -4,3 +4,12 @@ $this->create('core_ajax_trashbin_preview', '/preview')->action( function() { require_once __DIR__ . '/../ajax/preview.php'; }); + +$this->create('files_trashbin_ajax_delete', 'ajax/delete.php') + ->actionInclude('files_trashbin/ajax/delete.php'); +$this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php') + ->actionInclude('files_trashbin/ajax/isEmpty.php'); +$this->create('files_trashbin_ajax_list', 'ajax/list.php') + ->actionInclude('files_trashbin/ajax/list.php'); +$this->create('files_trashbin_ajax_undelete', 'ajax/undelete.php') + ->actionInclude('files_trashbin/ajax/undelete.php'); diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php index b9bb00dae55..057834213e4 100644 --- a/apps/files_versions/appinfo/routes.php +++ b/apps/files_versions/appinfo/routes.php @@ -11,5 +11,10 @@ function() { require_once __DIR__ . '/../ajax/preview.php'; }); +$this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php') + ->actionInclude('files_versions/ajax/getVersions.php'); +$this->create('files_versions_ajax_rollbackVersion', 'ajax/rollbackVersion.php') + ->actionInclude('files_versions/ajax/rollbackVersion.php'); + // Register with the capabilities API OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH); diff --git a/apps/user_ldap/appinfo/routes.php b/apps/user_ldap/appinfo/routes.php new file mode 100644 index 00000000000..92c8ad1809a --- /dev/null +++ b/apps/user_ldap/appinfo/routes.php @@ -0,0 +1,22 @@ +<?php +/** + * Copyright (c) 2014, Lukas Reschke <lukas@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or later. + * See the COPYING-README file. + */ + +/** @var $this \OCP\Route\IRouter */ +$this->create('user_ldap_ajax_clearMappings', 'ajax/clearMappings.php') + ->actionInclude('user_ldap/ajax/clearMappings.php'); +$this->create('user_ldap_ajax_deleteConfiguration', 'ajax/deleteConfiguration.php') + ->actionInclude('user_ldap/ajax/deleteConfiguration.php'); +$this->create('user_ldap_ajax_getConfiguration', 'ajax/getConfiguration.php') + ->actionInclude('user_ldap/ajax/getConfiguration.php'); +$this->create('user_ldap_ajax_getNewServerConfigPrefix', 'ajax/getNewServerConfigPrefix.php') + ->actionInclude('user_ldap/ajax/getNewServerConfigPrefix.php'); +$this->create('user_ldap_ajax_setConfiguration', 'ajax/setConfiguration.php') + ->actionInclude('user_ldap/ajax/setConfiguration.php'); +$this->create('user_ldap_ajax_testConfiguration', 'ajax/testConfiguration.php') + ->actionInclude('user_ldap/ajax/testConfiguration.php'); +$this->create('user_ldap_ajax_wizard', 'ajax/wizard.php') + ->actionInclude('user_ldap/ajax/wizard.php'); |