index.php 445 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. require_once __DIR__ . '/../lib/base.php';
  8. header('Content-Type: application/json');
  9. $server = \OC::$server;
  10. $controller = new \OC\OCS\Provider(
  11. 'ocs_provider',
  12. $server->getRequest(),
  13. $server->getAppManager()
  14. );
  15. echo $controller->buildProviderList()->render();