Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-10-28 01:59:49 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-10-28 01:59:49 +0300
commit45c30440b808c1c9d6c07563cba8fddcb19ec279 (patch)
tree1d620f9a762d81eb28842f22c8067fa0c40b1100 /appinfo/routes.php
parent33dfec880466a2bb646641f2940636b3cc28124f (diff)
Move download to documentcontroller
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a6ef87c5..f023407d 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -28,6 +28,7 @@ $application->registerRoutes($this, array(
array('name' => 'document#serve', 'url' => 'ajax/genesis/{esId}', 'verb' => array('GET', 'HEAD')),
array('name' => 'document#rename', 'url' => 'ajax/documents/rename/{fileId}', 'verb' => 'POST'),
array('name' => 'document#listAll', 'url' => 'ajax/documents/list', 'verb' => 'GET'),
+ array('name' => 'document#download', 'url' => 'ajax/download.php', 'verb' => array('GET', 'HEAD')),
//settings
array('name' => 'settings#savePersonal', 'url' => 'ajax/personal.php', 'verb' => 'POST'),
array('name' => 'settings#setUnstable', 'url' => 'ajax/config/unstable', 'verb' => 'POST'),
@@ -37,9 +38,6 @@ $application->registerRoutes($this, array(
/** @var $this \OC\Route\Router */
-$this->create('documents_ajax_download', 'ajax/download.php')
- ->actionInclude('documents/ajax/download.php');
-
$this->create('documents_ajax_mimes', 'ajax/mimes.php')
->actionInclude('documents/ajax/mimes.php');