From 708b4991d9039543130b569dd845ed8d8cd1a68c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 14 Apr 2020 18:24:02 +0200 Subject: [PATCH] Fix legacy routes Signed-off-by: Joas Schilling --- apps/files/appinfo/routes.php | 4 ++-- apps/files_external/appinfo/routes.php | 6 +++--- apps/files_versions/appinfo/routes.php | 6 +++--- apps/user_ldap/appinfo/routes.php | 14 +++++++------- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index 01d1e14054a..d304ceb7b28 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -153,7 +153,7 @@ $application->registerRoutes( /** @var $this \OC\Route\Router */ -$this->create('files_ajax_download', 'ajax/download.php') +$this->create('files_ajax_download', 'apps/files/ajax/download.php') ->actionInclude('files/ajax/download.php'); -$this->create('files_ajax_list', 'ajax/list.php') +$this->create('files_ajax_list', 'apps/files/ajax/list.php') ->actionInclude('files/ajax/list.php'); diff --git a/apps/files_external/appinfo/routes.php b/apps/files_external/appinfo/routes.php index c504110210b..17484594a45 100644 --- a/apps/files_external/appinfo/routes.php +++ b/apps/files_external/appinfo/routes.php @@ -60,11 +60,11 @@ ] ); -$this->create('files_external_oauth1', 'ajax/oauth1.php') +$this->create('files_external_oauth1', 'apps/files_external/ajax/oauth1.php') ->actionInclude('files_external/ajax/oauth1.php'); -$this->create('files_external_oauth2', 'ajax/oauth2.php') +$this->create('files_external_oauth2', 'apps/files_external/ajax/oauth2.php') ->actionInclude('files_external/ajax/oauth2.php'); -$this->create('files_external_list_applicable', '/applicable') +$this->create('files_external_list_applicable', '/apps/files_external/applicable') ->actionInclude('files_external/ajax/applicable.php'); diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php index 7252ddcd22b..35a746777dc 100644 --- a/apps/files_versions/appinfo/routes.php +++ b/apps/files_versions/appinfo/routes.php @@ -40,9 +40,9 @@ $application->registerRoutes($this, [ ]); /** @var $this \OCP\Route\IRouter */ -$this->create('files_versions_download', 'download.php') +$this->create('files_versions_download', 'apps/files_versions/download.php') ->actionInclude('files_versions/download.php'); -$this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php') +$this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php') ->actionInclude('files_versions/ajax/getVersions.php'); -$this->create('files_versions_ajax_rollbackVersion', 'ajax/rollbackVersion.php') +$this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php') ->actionInclude('files_versions/ajax/rollbackVersion.php'); diff --git a/apps/user_ldap/appinfo/routes.php b/apps/user_ldap/appinfo/routes.php index d7955446a47..d3ff28a3f19 100644 --- a/apps/user_ldap/appinfo/routes.php +++ b/apps/user_ldap/appinfo/routes.php @@ -28,19 +28,19 @@ declare(strict_types=1); */ /** @var $this \OCP\Route\IRouter */ -$this->create('user_ldap_ajax_clearMappings', 'ajax/clearMappings.php') +$this->create('user_ldap_ajax_clearMappings', 'apps/user_ldap/ajax/clearMappings.php') ->actionInclude('user_ldap/ajax/clearMappings.php'); -$this->create('user_ldap_ajax_deleteConfiguration', 'ajax/deleteConfiguration.php') +$this->create('user_ldap_ajax_deleteConfiguration', 'apps/user_ldap/ajax/deleteConfiguration.php') ->actionInclude('user_ldap/ajax/deleteConfiguration.php'); -$this->create('user_ldap_ajax_getConfiguration', 'ajax/getConfiguration.php') +$this->create('user_ldap_ajax_getConfiguration', 'apps/user_ldap/ajax/getConfiguration.php') ->actionInclude('user_ldap/ajax/getConfiguration.php'); -$this->create('user_ldap_ajax_getNewServerConfigPrefix', 'ajax/getNewServerConfigPrefix.php') +$this->create('user_ldap_ajax_getNewServerConfigPrefix', 'apps/user_ldap/ajax/getNewServerConfigPrefix.php') ->actionInclude('user_ldap/ajax/getNewServerConfigPrefix.php'); -$this->create('user_ldap_ajax_setConfiguration', 'ajax/setConfiguration.php') +$this->create('user_ldap_ajax_setConfiguration', 'apps/user_ldap/ajax/setConfiguration.php') ->actionInclude('user_ldap/ajax/setConfiguration.php'); -$this->create('user_ldap_ajax_testConfiguration', 'ajax/testConfiguration.php') +$this->create('user_ldap_ajax_testConfiguration', 'apps/user_ldap/ajax/testConfiguration.php') ->actionInclude('user_ldap/ajax/testConfiguration.php'); -$this->create('user_ldap_ajax_wizard', 'ajax/wizard.php') +$this->create('user_ldap_ajax_wizard', 'apps/user_ldap/ajax/wizard.php') ->actionInclude('user_ldap/ajax/wizard.php'); $application = new \OCP\AppFramework\App('user_ldap'); -- 2.39.5