summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/routes.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-08-22 14:36:01 +0200
committerLukas Reschke <lukas@owncloud.com>2015-08-22 14:39:43 +0200
commit0a1d551090696b6423cf4fe0740468bff912a972 (patch)
tree5efff5151f8bea86ec11d8d5db6d71c40d890cab /apps/files_sharing/appinfo/routes.php
parent510010e774c4019b7fc616c90085649abb7afac3 (diff)
downloadnextcloud-server-0a1d551090696b6423cf4fe0740468bff912a972.tar.gz
nextcloud-server-0a1d551090696b6423cf4fe0740468bff912a972.zip
Use IClientService to check for remote ownCloud instances
1. Allows to set a timeout (though still not perfect but way better than before) 2. Allows to have unit tests 3. I also added unit tests for the existing controller code 4. Corrected PHPDoc on IClient
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 1e99267a43a..184ad29bba4 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -33,7 +33,14 @@ $application = new Application();
$application->registerRoutes($this, [
'resources' => [
'ExternalShares' => ['url' => '/api/externalShares'],
- ]
+ ],
+ 'routes' => [
+ [
+ 'name' => 'externalShares#testRemote',
+ 'url' => '/testremote',
+ 'verb' => 'GET'
+ ],
+ ],
]);
/** @var $this \OCP\Route\IRouter */
@@ -50,8 +57,6 @@ $this->create('sharing_external_shareinfo', '/shareinfo')
->actionInclude('files_sharing/ajax/shareinfo.php');
$this->create('sharing_external_add', '/external')
->actionInclude('files_sharing/ajax/external.php');
-$this->create('sharing_external_test_remote', '/testremote')
- ->actionInclude('files_sharing/ajax/testremote.php');
// OCS API