summaryrefslogtreecommitdiffstats
path: root/apps/federation
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-02-24 11:02:01 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2017-03-09 09:54:52 +0100
commite08c3f1b1d9a80bed2ec1002e119d34e52dfe42c (patch)
treeacc0d4cf2e010440870188281780327250c64ad8 /apps/federation
parentc225c82fea0d8ce0a6358d247ae13051fb0227ba (diff)
downloadnextcloud-server-e08c3f1b1d9a80bed2ec1002e119d34e52dfe42c.tar.gz
nextcloud-server-e08c3f1b1d9a80bed2ec1002e119d34e52dfe42c.zip
add new routes for trusted servers which are more align with the other end-points
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federation')
-rw-r--r--apps/federation/appinfo/routes.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/federation/appinfo/routes.php b/apps/federation/appinfo/routes.php
index b9515812a01..4c742dd705c 100644
--- a/apps/federation/appinfo/routes.php
+++ b/apps/federation/appinfo/routes.php
@@ -43,6 +43,7 @@ $application->registerRoutes(
],
],
'ocs' => [
+ // old endpoints, only used by Nextcloud and ownCloud
[
'name' => 'OCSAuthAPI#getSharedSecret',
'url' => '/api/v1/shared-secret',
@@ -53,6 +54,19 @@ $application->registerRoutes(
'url' => '/api/v1/request-shared-secret',
'verb' => 'POST',
],
+ // new endpoints, published as public api
+ [
+ 'name' => 'OCSAuthAPI#getSharedSecret',
+ 'root' => '/cloud',
+ 'url' => '/shared-secret',
+ 'verb' => 'GET',
+ ],
+ [
+ 'name' => 'OCSAuthAPI#requestSharedSecret',
+ 'root' => '/cloud',
+ 'url' => '/shared-secret',
+ 'verb' => 'POST',
+ ],
],
]
);