summaryrefslogtreecommitdiffstats
path: root/core/routes.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-14 19:27:14 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-03 14:00:33 +0100
commit02525fd98bb3994199ebd877968574610f6898ee (patch)
treecb37f6f475acd0d353be95eae0e28807c0d6257f /core/routes.php
parentc8ff9fb00e6ce65666bac00e0cc2a8c6f4da4b6c (diff)
downloadnextcloud-server-02525fd98bb3994199ebd877968574610f6898ee.tar.gz
nextcloud-server-02525fd98bb3994199ebd877968574610f6898ee.zip
Move preview endpoint to controller
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/routes.php')
-rw-r--r--core/routes.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/routes.php b/core/routes.php
index 9ccf0e653eb..c890d232cfe 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -52,6 +52,8 @@ $application->registerRoutes($this, [
['name' => 'TwoFactorChallenge#showChallenge', 'url' => '/login/challenge/{challengeProviderId}', 'verb' => 'GET'],
['name' => 'TwoFactorChallenge#solveChallenge', 'url' => '/login/challenge/{challengeProviderId}', 'verb' => 'POST'],
['name' => 'OCJS#getConfig', 'url' => '/core/js/oc.js', 'verb' => 'GET'],
+ ['name' => 'Preview#getPreview', 'url' => '/core/preview', 'verb' => 'GET'],
+ ['name' => 'Preview#getPreview', 'url' => '/core/preview.png', 'verb' => 'GET'],
],
'ocs' => [
['root' => '/cloud', 'name' => 'OCS#getCapabilities', 'url' => '/capabilities', 'verb' => 'GET'],
@@ -68,12 +70,6 @@ $application->registerRoutes($this, [
$this->create('search_ajax_search', '/core/search')
->actionInclude('core/search/ajax/search.php');
// Routing
-$this->create('core_ajax_preview', '/core/preview')
- ->actionInclude('core/ajax/preview2.php');
-$this->create('core_ajax_preview2', '/core/preview2')
- ->actionInclude('core/ajax/preview2.php');
-$this->create('core_ajax_preview', '/core/preview.png')
- ->actionInclude('core/ajax/preview2.php');
$this->create('core_ajax_update', '/core/ajax/update.php')
->actionInclude('core/ajax/update.php');