Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-17 11:54:46 +0300
committerJulius Härtl <jus@bitgrid.net>2019-10-17 12:05:54 +0300
commita307bb285ee6f01982dbc7fde05ff34d038cf1d6 (patch)
tree884605307cb1e51ee6264f63fed25c36c63e6d28 /apps/settings/appinfo
parentbd5189f29fc5b4340298f98f2f7a49aa3a157131 (diff)
Move help to controller
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/settings/appinfo')
-rw-r--r--apps/settings/appinfo/routes.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/settings/appinfo/routes.php b/apps/settings/appinfo/routes.php
index b55bea0de68..3c80cc05386 100644
--- a/apps/settings/appinfo/routes.php
+++ b/apps/settings/appinfo/routes.php
@@ -89,12 +89,7 @@ $application->registerRoutes($this, [
['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST'],
['name' => 'TwoFactorSettings#index', 'url' => '/settings/api/admin/twofactorauth', 'verb' => 'GET'],
['name' => 'TwoFactorSettings#update', 'url' => '/settings/api/admin/twofactorauth', 'verb' => 'PUT'],
+
+ ['name' => 'Help#help', 'url' => '/settings/help/{mode}', 'verb' => 'GET', 'defaults' => ['mode' => '']],
]
]);
-
-/** @var $this \OCP\Route\IRouter */
-
-// Settings pages
-$this->create('settings_help', '/settings/help')
- ->actionInclude('settings/help.php');
-