Browse Source

add new routes for trusted servers which are more align with the other end-points

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
pull/3611/head
Bjoern Schiessle 9 years ago
parent
commit
e08c3f1b1d
No known key found for this signature in database GPG Key ID: 2378A753E2BF04F6
  1. 14
      apps/federation/appinfo/routes.php

14
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',
],
],
]
);
Loading…
Cancel
Save