diff options
author | Joas Schilling <coding@schilljs.com> | 2018-10-16 17:48:16 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:15 +0100 |
commit | 65a9ab47ea233701b559d08d89e36649a3d5a30b (patch) | |
tree | 0315b4b1461e06cd9d968bb024bcdc97234ae6d1 /core/routes.php | |
parent | 69b530a44230028c278bda94984b7aaacd22a8a1 (diff) | |
download | nextcloud-server-65a9ab47ea233701b559d08d89e36649a3d5a30b.tar.gz nextcloud-server-65a9ab47ea233701b559d08d89e36649a3d5a30b.zip |
Add a controller with the most important methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php index d79fea1ca21..7fcd576d322 100644 --- a/core/routes.php +++ b/core/routes.php @@ -90,6 +90,11 @@ $application->registerRoutes($this, [ ['root' => '/core', 'name' => 'WhatsNew#get', 'url' => '/whatsnew', 'verb' => 'GET'], ['root' => '/core', 'name' => 'WhatsNew#dismiss', 'url' => '/whatsnew', 'verb' => 'POST'], ['root' => '/core', 'name' => 'AppPassword#getAppPassword', 'url' => '/getapppassword', 'verb' => 'GET'], + + ['root' => '/collaboration', 'name' => 'CollaborationResources#listCollection', 'url' => '/resources/collections/{collectionId}', 'verb' => 'GET'], + ['root' => '/collaboration', 'name' => 'CollaborationResources#addResource', 'url' => '/resources/collections/{collectionId}', 'verb' => 'POST'], + ['root' => '/collaboration', 'name' => 'CollaborationResources#removeResource', 'url' => '/resources/collections/{collectionId}', 'verb' => 'DELETE'], + ['root' => '/collaboration', 'name' => 'CollaborationResources#getCollectionsByResource', 'url' => '/resources/{resourceType}/{resourceId}', 'verb' => 'GET'], ], ]); |