You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

routes.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. $this->create('files_external_oauth1', 'apps/files_external/ajax/oauth1.php')
  8. ->actionInclude('files_external/ajax/oauth1.php');
  9. $this->create('files_external_oauth2', 'apps/files_external/ajax/oauth2.php')
  10. ->actionInclude('files_external/ajax/oauth2.php');
  11. $this->create('files_external_list_applicable', '/apps/files_external/applicable')
  12. ->actionInclude('files_external/ajax/applicable.php');
  13. return [
  14. 'resources' => [
  15. 'global_storages' => ['url' => '/globalstorages'],
  16. 'user_storages' => ['url' => '/userstorages'],
  17. 'user_global_storages' => ['url' => '/userglobalstorages'],
  18. ],
  19. 'routes' => [
  20. [
  21. 'name' => 'Ajax#getSshKeys',
  22. 'url' => '/ajax/public_key.php',
  23. 'verb' => 'POST',
  24. 'requirements' => [],
  25. ],
  26. [
  27. 'name' => 'Ajax#saveGlobalCredentials',
  28. 'url' => '/globalcredentials',
  29. 'verb' => 'POST',
  30. ],
  31. ],
  32. 'ocs' => [
  33. [
  34. 'name' => 'Api#getUserMounts',
  35. 'url' => '/api/v1/mounts',
  36. 'verb' => 'GET',
  37. ],
  38. [
  39. 'name' => 'Api#askNativeAuth',
  40. 'url' => '/api/v1/auth',
  41. 'verb' => 'GET',
  42. ],
  43. ],
  44. ];