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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-14 10:34:30 +0300
committerJulius Härtl <jus@bitgrid.net>2019-05-14 10:34:30 +0300
commitfe6272f411f502b5734f74270f62fed17a0a8156 (patch)
treea518a1d6b1ffb0def71ea30d72502909dc858cf2 /appinfo
parentfd1e342338fbf6007ccbcd4fc2a34cdf8c8b2140 (diff)
Add public endpoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php2
-rw-r--r--appinfo/info.xml2
-rw-r--r--appinfo/routes.php12
3 files changed, 9 insertions, 7 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 8dd192622..2487dd64a 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -13,5 +13,5 @@ if (\OC::$server->getUserSession()->isLoggedIn()) {
}
$eventDispatcher->addListener('OCA\Files_Sharing::loadAdditionalScripts', function () {
- // load public stuff
+ \OCP\Util::addScript('text', 'public');
});
diff --git a/appinfo/info.xml b/appinfo/info.xml
index c603c65f5..6bf6bd037 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -15,7 +15,7 @@
<repository type="git">https://github.com/nextcloud/text.git</repository>
<screenshot>https://raw.githubusercontent.com/nextcloud/text/master/img/screenshot.png</screenshot>
<dependencies>
- <nextcloud min-version="17" max-version="17"/>
+ <nextcloud min-version="16" max-version="17"/>
</dependencies>
<navigations>
<navigation>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index d0bf8c9fd..6dc7cfefb 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -7,15 +7,17 @@ return [
'routes' => [
['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'],
- // Setup a new session
['name' => 'Session#create', 'url' => '/session/create', 'verb' => 'GET'],
- // Load initial document
['name' => 'Session#fetch', 'url' => '/session/fetch', 'verb' => 'GET'],
- // Load steps
['name' => 'Session#sync', 'url' => '/session/sync', 'verb' => 'POST'],
- // Push own steps
['name' => 'Session#push', 'url' => '/session/push', 'verb' => 'POST'],
- // Close session
['name' => 'Session#close', 'url' => '/session/close', 'verb' => 'GET'],
+
+ ['name' => 'PublicSession#create', 'url' => '/public/session/create', 'verb' => 'GET'],
+ ['name' => 'PublicSession#fetch', 'url' => '/public/session/fetch', 'verb' => 'GET'],
+ ['name' => 'PublicSession#sync', 'url' => '/public/session/sync', 'verb' => 'POST'],
+ ['name' => 'PublicSession#push', 'url' => '/public/session/push', 'verb' => 'POST'],
+ ['name' => 'PublicSession#close', 'url' => '/public/session/close', 'verb' => 'GET'],
+
]
];