]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make group settings routes explicit 4381/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 18 Apr 2017 20:00:22 +0000 (22:00 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 18 Apr 2017 20:00:22 +0000 (22:00 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
settings/routes.php

index 3f034d363e23adad4840115dc5fd5bc655a22ea6..b76bb213d0c466e6b257af412d30f513ae11d3a5 100644 (file)
@@ -37,7 +37,6 @@ namespace OC\Settings;
 $application = new Application();
 $application->registerRoutes($this, [
        'resources' => [
-               'groups' => ['url' => '/settings/users/groups'],
                'users' => ['url' => '/settings/users/users'],
                'AuthSettings' => ['url' => '/settings/personal/authtokens'],
        ],
@@ -69,6 +68,11 @@ $application->registerRoutes($this, [
                ['name' => 'ChangePassword#changePersonalPassword', 'url' => '/settings/personal/changepassword', 'verb' => 'POST'],
                ['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST'],
                ['name' => 'Personal#setLanguage', 'url' => '/settings/ajax/setlanguage.php', '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'],
        ]
 ]);