1
0

routes.php 774 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. return [
  8. 'routes' => [
  9. ['name' => 'Admin#createCredentials', 'url' => '/credentials', 'verb' => 'GET'],
  10. ['name' => 'Admin#setChannel', 'url' => '/channel', 'verb' => 'POST'],
  11. // Fallback app changelog information for mobile clients
  12. ['name' => 'Changelog#showChangelog', 'url' => '/changelog/{app}', 'verb' => 'GET'],
  13. ],
  14. 'ocs' => [
  15. ['name' => 'API#getAppList', 'url' => '/api/{apiVersion}/applist/{newVersion}', 'verb' => 'GET', 'requirements' => ['apiVersion' => '(v1)']],
  16. ['name' => 'API#getAppChangelogEntry', 'url' => '/api/{apiVersion}/changelog/{appId}', 'verb' => 'GET', 'requirements' => ['apiVersion' => '(v1)']],
  17. ],
  18. ];