From e08c3f1b1d9a80bed2ec1002e119d34e52dfe42c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 24 Feb 2017 11:02:01 +0100 Subject: [PATCH] add new routes for trusted servers which are more align with the other end-points Signed-off-by: Bjoern Schiessle --- apps/federation/appinfo/routes.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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', + ], ], ] ); -- 2.39.5