diff options
Diffstat (limited to 'settings/routes.php')
-rw-r--r-- | settings/routes.php | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/settings/routes.php b/settings/routes.php index 9a89d7353ef..a3a5812bf4f 100644 --- a/settings/routes.php +++ b/settings/routes.php @@ -39,7 +39,6 @@ namespace OC\Settings; $application = new Application(); $application->registerRoutes($this, [ 'resources' => [ - 'users' => ['url' => '/settings/users/users'], 'AuthSettings' => ['url' => '/settings/personal/authtokens'], ], 'routes' => [ @@ -50,12 +49,10 @@ $application->registerRoutes($this, [ ['name' => 'AppSettings#listCategories', 'url' => '/settings/apps/categories', 'verb' => 'GET'], ['name' => 'AppSettings#viewApps', 'url' => '/settings/apps', 'verb' => 'GET'], ['name' => 'AppSettings#listApps', 'url' => '/settings/apps/list', 'verb' => 'GET'], - ['name' => 'Users#setDisplayName', 'url' => '/settings/users/{username}/displayName', 'verb' => 'POST'], - ['name' => 'Users#setEMailAddress', 'url' => '/settings/users/{id}/mailAddress', 'verb' => 'PUT'], ['name' => 'Users#setUserSettings', 'url' => '/settings/users/{username}/settings', 'verb' => 'PUT'], ['name' => 'Users#getVerificationCode', 'url' => '/settings/users/{account}/verify', 'verb' => 'GET'], - ['name' => 'Users#setEnabled', 'url' => '/settings/users/{id}/setEnabled', 'verb' => 'POST'], - ['name' => 'Users#stats', 'url' => '/settings/users/stats', 'verb' => 'GET'], + ['name' => 'Users#usersList', 'url' => '/settings/users', 'verb' => 'GET'], + ['name' => 'Users#usersListByGroup', 'url' => '/settings/users/{group}', 'verb' => 'GET'], ['name' => 'LogSettings#setLogLevel', 'url' => '/settings/admin/log/level', 'verb' => 'POST'], ['name' => 'LogSettings#getEntries', 'url' => '/settings/admin/log/entries', 'verb' => 'GET'], ['name' => 'LogSettings#download', 'url' => '/settings/admin/log/download', 'verb' => 'GET'], @@ -70,12 +67,7 @@ $application->registerRoutes($this, [ ['name' => 'AdminSettings#index', 'url' => '/settings/admin/{section}', 'verb' => 'GET', 'defaults' => ['section' => 'server']], ['name' => 'AdminSettings#form', 'url' => '/settings/admin/{section}', 'verb' => 'GET'], ['name' => 'ChangePassword#changePersonalPassword', 'url' => '/settings/personal/changepassword', 'verb' => 'POST'], - ['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST'], - ['name' => 'Groups#index', 'url' => '/settings/users/groups', 'verb' => 'GET'], - ['name' => 'Groups#show', 'url' => '/settings/users/groups/{id}', 'requirements' => ['id' => '[^?]*'], 'verb' => 'GET'], - ['name' => 'Groups#create', 'url' => '/settings/users/groups', 'verb' => 'POST'], - ['name' => 'Groups#update', 'url' => '/settings/users/groups/{id}', 'requirements' => ['id' => '[^?]*'], 'verb' => 'PUT'], - ['name' => 'Groups#destroy', 'url' => '/settings/users/groups/{id}', 'requirements' => ['id' => '[^?]*'], 'verb' => 'DELETE'], + ['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST'] ] ]); @@ -84,18 +76,7 @@ $application->registerRoutes($this, [ // Settings pages $this->create('settings_help', '/settings/help') ->actionInclude('settings/help.php'); -$this->create('settings_users', '/settings/users') - ->actionInclude('settings/users.php'); // Settings ajax actions -// users -$this->create('settings_ajax_setquota', '/settings/ajax/setquota.php') - ->actionInclude('settings/ajax/setquota.php'); -$this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php') - ->actionInclude('settings/ajax/togglegroups.php'); -$this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php') - ->actionInclude('settings/ajax/togglesubadmins.php'); -$this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.php') - ->actionInclude('settings/ajax/changegroupname.php'); // apps $this->create('settings_ajax_enableapp', '/settings/ajax/enableapp.php') ->actionInclude('settings/ajax/enableapp.php'); @@ -105,6 +86,3 @@ $this->create('settings_ajax_updateapp', '/settings/ajax/updateapp.php') ->actionInclude('settings/ajax/updateapp.php'); $this->create('settings_ajax_uninstallapp', '/settings/ajax/uninstallapp.php') ->actionInclude('settings/ajax/uninstallapp.php'); -// admin -$this->create('settings_ajax_excludegroups', '/settings/ajax/excludegroups.php') - ->actionInclude('settings/ajax/excludegroups.php'); |