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/routes.php
parentfd1e342338fbf6007ccbcd4fc2a34cdf8c8b2140 (diff)
Add public endpoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php12
1 files changed, 7 insertions, 5 deletions
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'],
+
]
];