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:
authorJan Holesovsky <kendy@collabora.com>2015-10-28 12:46:36 +0300
committerJan Holesovsky <kendy@collabora.com>2015-10-28 17:57:51 +0300
commit3bed81b4a9775834b8115c2ab6b6c0739079bd4b (patch)
tree0273a0e852468a79fcebd7b7210716159d20c1f1 /appinfo/routes.php
parent4cdae43fc87c3a4ccb216868915ff01c0ed12686 (diff)
cloudsuite: Implement the document loading via CloudSuite.
In order to work, we need a group that is shared between wwwrun (for owncloud) and loolwsd; let's call it loolwww. Then: cd <www>/owncloud/apps/documents mkdir documents-tmp chown chown wwwrun:loolwww documents-tmp chmod g+ws documents-tmp ownCloud takes care of copying the files to this shared location, and back (in the future). It will also need to take care of the cleanup, at the moment the files are leaked.
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a4ea9101..6b3ea81a 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -33,6 +33,8 @@ $application->registerRoutes($this, [
['name' => 'document#listAll', 'url' => 'ajax/documents/list', 'verb' => 'GET'],
['name' => 'document#download', 'url' => 'ajax/download.php', 'verb' => 'GET'],
['name' => 'document#showLOleaflet', 'url' => '/loleaflet', 'verb' => 'GET'],
+ //documents - for CloudSuite access
+ ['name' => 'document#localLoad', 'url' => 'ajax/documents/load/{esId}', 'verb' => 'POST'],
//settings
['name' => 'settings#savePersonal', 'url' => 'ajax/personal.php', 'verb' => 'POST'],
['name' => 'settings#setUnstable', 'url' => 'ajax/config/unstable', 'verb' => 'POST'],