summaryrefslogtreecommitdiffstats
path: root/apps/federation/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-19 14:25:59 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-28 11:40:53 +0200
commit16ff207465335b624e67b9a9d0dae00ef23cd45c (patch)
tree9c7f4e5ec1eb53d66aaeb6c379f9ebbc55f04ae7 /apps/federation/appinfo
parentb580c3664de3de11460e8adabc01f3f5eeb07d02 (diff)
downloadnextcloud-server-16ff207465335b624e67b9a9d0dae00ef23cd45c.tar.gz
nextcloud-server-16ff207465335b624e67b9a9d0dae00ef23cd45c.zip
Move OCSAuthAPI to AppFramework
* Convert class * Convert routes * Convert tests
Diffstat (limited to 'apps/federation/appinfo')
-rw-r--r--apps/federation/appinfo/routes.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/apps/federation/appinfo/routes.php b/apps/federation/appinfo/routes.php
index 03acc60c682..b9515812a01 100644
--- a/apps/federation/appinfo/routes.php
+++ b/apps/federation/appinfo/routes.php
@@ -41,8 +41,18 @@ $application->registerRoutes(
'url' => '/auto-add-servers',
'verb' => 'POST'
],
- ]
+ ],
+ 'ocs' => [
+ [
+ 'name' => 'OCSAuthAPI#getSharedSecret',
+ 'url' => '/api/v1/shared-secret',
+ 'verb' => 'GET',
+ ],
+ [
+ 'name' => 'OCSAuthAPI#requestSharedSecret',
+ 'url' => '/api/v1/request-shared-secret',
+ 'verb' => 'POST',
+ ],
+ ],
]
);
-
-$application->registerOCSApi();