2013-02-09 06:53:54 -05:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-06-02 09:26:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2013-02-09 06:53:54 -05:00
|
|
|
*/
|
2015-03-21 15:12:55 -04:00
|
|
|
namespace OCA\Files_Versions\AppInfo;
|
|
|
|
|
|
2024-10-18 06:04:22 -04:00
|
|
|
use OCP\Route\IRouter;
|
|
|
|
|
|
2019-10-11 02:33:09 -04:00
|
|
|
/** @var Application $application */
|
|
|
|
|
$application = \OC::$server->query(Application::class);
|
2016-10-16 14:42:35 -04:00
|
|
|
$application->registerRoutes($this, [
|
|
|
|
|
'routes' => [
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Preview#getPreview',
|
|
|
|
|
'url' => '/preview',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
]);
|
2015-03-21 15:12:55 -04:00
|
|
|
|
2024-10-18 06:04:22 -04:00
|
|
|
/** @var IRouter $this */
|
2020-04-14 12:24:02 -04:00
|
|
|
$this->create('files_versions_download', 'apps/files_versions/download.php')
|
2014-12-02 11:52:31 -05:00
|
|
|
->actionInclude('files_versions/download.php');
|
2020-04-14 12:24:02 -04:00
|
|
|
$this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php')
|
2014-08-19 09:25:16 -04:00
|
|
|
->actionInclude('files_versions/ajax/getVersions.php');
|
2020-04-14 12:24:02 -04:00
|
|
|
$this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
|
2014-08-19 09:25:16 -04:00
|
|
|
->actionInclude('files_versions/ajax/rollbackVersion.php');
|