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 538B

123456789101112131415
  1. <?php
  2. /**
  3. * Copyright (c) 2013, Tom Needham <tom@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */
  7. // Register with the capabilities API
  8. OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH);
  9. /** @var $this \OCP\Route\IRouter */
  10. $this->create('core_ajax_versions_preview', '/preview')->action(
  11. function() {
  12. require_once __DIR__ . '/../ajax/preview.php';
  13. });