use OCP\Route\IRouter;
-/** @var Application $application */
-$application = \OC::$server->query(Application::class);
-$application->registerRoutes($this, [
- 'routes' => [
- [
- 'name' => 'Preview#getPreview',
- 'url' => '/preview',
- 'verb' => 'GET',
- ],
- ],
-]);
-
/** @var IRouter $this */
$this->create('files_versions_download', 'apps/files_versions/download.php')
->actionInclude('files_versions/download.php');
->actionInclude('files_versions/ajax/getVersions.php');
$this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
->actionInclude('files_versions/ajax/rollbackVersion.php');
+
+return [
+ 'routes' => [
+ [
+ 'name' => 'Preview#getPreview',
+ 'url' => '/preview',
+ 'verb' => 'GET',
+ ],
+ ],
+];