summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-16 16:59:38 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-03 14:00:33 +0100
commit3822bceea2051da61cae99e3c7b87442165adb65 (patch)
tree9bcfa1b8a60c57af631b57ff410de8ea39a5ac57 /apps/files_sharing/appinfo
parent5466fbf761bfb810a43b11789b03b2ec54c9ab6e (diff)
downloadnextcloud-server-3822bceea2051da61cae99e3c7b87442165adb65.tar.gz
nextcloud-server-3822bceea2051da61cae99e3c7b87442165adb65.zip
Move publicpreview over
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/routes.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 267e53829da..439d46253d4 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -39,6 +39,17 @@ $application->registerRoutes($this, [
'url' => '/testremote',
'verb' => 'GET'
],
+ [
+ 'name' => 'PublicPreview#getPreview',
+ 'url' => '/publicpreview',
+ 'verb' => 'GET',
+ ],
+
+ [
+ 'name' => 'PublicPreview#getPreview',
+ 'url' => '/ajax/publicpreview.php',
+ 'verb' => 'GET',
+ ],
],
'ocs' => [
/*
@@ -114,15 +125,8 @@ $application->registerRoutes($this, [
]);
/** @var $this \OCP\Route\IRouter */
-$this->create('core_ajax_public_preview', '/publicpreview')->action(
- function() {
- require_once __DIR__ . '/../ajax/publicpreview.php';
- });
-
$this->create('files_sharing_ajax_list', 'ajax/list.php')
->actionInclude('files_sharing/ajax/list.php');
-$this->create('files_sharing_ajax_publicpreview', 'ajax/publicpreview.php')
- ->actionInclude('files_sharing/ajax/publicpreview.php');
$this->create('sharing_external_shareinfo', '/shareinfo')
->actionInclude('files_sharing/ajax/shareinfo.php');