2014-06-06 11:16:47 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2024-06-06 07:55:47 +00:00
|
|
|
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-06-06 11:16:47 +00:00
|
|
|
*/
|
2021-03-26 14:07:39 +00:00
|
|
|
|
2014-12-19 17:23:24 +00:00
|
|
|
|
2020-04-14 16:24:02 +00:00
|
|
|
$this->create('files_external_oauth1', 'apps/files_external/ajax/oauth1.php')
|
2015-08-12 21:03:41 +00:00
|
|
|
->actionInclude('files_external/ajax/oauth1.php');
|
2020-04-14 16:24:02 +00:00
|
|
|
$this->create('files_external_oauth2', 'apps/files_external/ajax/oauth2.php')
|
2015-08-12 21:09:20 +00:00
|
|
|
->actionInclude('files_external/ajax/oauth2.php');
|
2014-08-22 09:51:39 +00:00
|
|
|
|
2014-12-19 17:23:24 +00:00
|
|
|
|
2020-04-14 16:24:02 +00:00
|
|
|
$this->create('files_external_list_applicable', '/apps/files_external/applicable')
|
2014-05-08 13:25:46 +00:00
|
|
|
->actionInclude('files_external/ajax/applicable.php');
|
2021-03-26 14:07:39 +00:00
|
|
|
|
|
|
|
return [
|
|
|
|
'resources' => [
|
|
|
|
'global_storages' => ['url' => '/globalstorages'],
|
|
|
|
'user_storages' => ['url' => '/userstorages'],
|
|
|
|
'user_global_storages' => ['url' => '/userglobalstorages'],
|
|
|
|
],
|
|
|
|
'routes' => [
|
|
|
|
[
|
|
|
|
'name' => 'Ajax#getSshKeys',
|
|
|
|
'url' => '/ajax/public_key.php',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Ajax#saveGlobalCredentials',
|
|
|
|
'url' => '/globalcredentials',
|
|
|
|
'verb' => 'POST',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'ocs' => [
|
|
|
|
[
|
|
|
|
'name' => 'Api#getUserMounts',
|
|
|
|
'url' => '/api/v1/mounts',
|
|
|
|
'verb' => 'GET',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|