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
path: root/lib
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-05-19 21:15:19 +0300
committerPranav Kant <pranavk@collabora.co.uk>2017-05-19 21:26:27 +0300
commit0c14789cc35acd0a487e24ef220f96b5207a6118 (patch)
treee2ede856c736928d506458fcc7254be5d9bfede5 /lib
parentaeeb31d4c708443f064dfc43514cc17f8fb44c94 (diff)
Revert "Remove unrequired route"; respect OOXML settings again
This reverts commit aa89c908a70dddabb39ea7d0a166e147e31d3f5d.
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/SettingsController.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php
index b8122658..211e93ca 100644
--- a/lib/Controller/SettingsController.php
+++ b/lib/Controller/SettingsController.php
@@ -46,6 +46,18 @@ class SettingsController extends Controller{
}
/**
+ * @NoAdminRequired
+ *
+ * @return JSONResponse
+ */
+ public function getSettings() {
+ return new JSONResponse([
+ 'doc_format' => $this->appConfig->getAppValue('doc_format'),
+ 'wopi_url' => $this->appConfig->getAppValue('wopi_url'),
+ ]);
+ }
+
+ /**
* @param string $wopi_url
* @param string $doc_format
* @return JSONResponse