diff options
author | Björn Schießle <bjoern@schiessle.org> | 2017-03-09 14:39:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 14:39:18 +0100 |
commit | c23c062c89b214f4504a418cc96e5f6c740713f2 (patch) | |
tree | a2207a381aae90331ac25529fc2a95a8d89397d0 /apps | |
parent | 6d10a2aece9ab4cce0f57f20594b9fcb9372a794 (diff) | |
parent | 43bca9f7f611a96640a8363be44e6977a110aa03 (diff) | |
download | nextcloud-server-c23c062c89b214f4504a418cc96e5f6c740713f2.tar.gz nextcloud-server-c23c062c89b214f4504a418cc96e5f6c740713f2.zip |
Merge pull request #3611 from nextcloud/announce-trsuted-server-endpoints
Announce trusted server endpoints
Diffstat (limited to 'apps')
-rw-r--r-- | apps/federation/appinfo/routes.php | 14 |
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', + ], ], ] ); |