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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2022-06-14 18:06:47 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2022-06-14 18:06:47 +0300
commitd7f56e4a7e38aba9c46817d88c27165f1b2b3f0a (patch)
tree39fcb9e1545b9c1acb61d8fb0dcc5971f40724d5 /appinfo
parent9e21dda5210cf607e269eaf41cda177b3d62ce93 (diff)
parent47e0d8451539c1e43435c73520f066cdfed1c12d (diff)
Merge branch 'feature/nc-23' into develop
# Conflicts: # lib/listeners/fileslistener.php
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php14
-rw-r--r--appinfo/routes.php4
2 files changed, 17 insertions, 1 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index a90be12..3b3065a 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -44,6 +44,7 @@ use OCA\Onlyoffice\AppConfig;
use OCA\Onlyoffice\Controller\CallbackController;
use OCA\Onlyoffice\Controller\EditorController;
use OCA\Onlyoffice\Controller\EditorApiController;
+use OCA\Onlyoffice\Controller\SharingApiController;
use OCA\Onlyoffice\Controller\SettingsController;
use OCA\Onlyoffice\Controller\TemplateController;
use OCA\Onlyoffice\Listeners\FilesListener;
@@ -163,6 +164,19 @@ class Application extends App implements IBootstrap {
);
});
+ $context->registerService("SharingApiController", function (ContainerInterface $c) {
+ return new SharingApiController(
+ $c->get("AppName"),
+ $c->get("Request"),
+ $c->get("RootStorage"),
+ $c->get("Logger"),
+ $c->get("UserSession"),
+ $c->get("UserManager"),
+ $c->get("IManager"),
+ $this->appConfig
+ );
+ });
+
$context->registerService("EditorApiController", function (ContainerInterface $c) {
return new EditorApiController(
$c->get("AppName"),
diff --git a/appinfo/routes.php b/appinfo/routes.php
index cbdb010..bf5ea6d 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -47,6 +47,8 @@ return [
"ocs" => [
["name" => "federation#key", "url" => "/api/v1/key", "verb" => "POST"],
["name" => "federation#keylock", "url" => "/api/v1/keylock", "verb" => "POST"],
- ["name" => "editorapi#config", "url" => "/api/v1/config/{fileId}", "verb" => "GET"]
+ ["name" => "editorapi#config", "url" => "/api/v1/config/{fileId}", "verb" => "GET"],
+ ["name" => "sharingapi#get_shares", "url" => "/api/v1/shares/{fileId}", "verb" => "GET"],
+ ["name" => "sharingapi#set_shares", "url" => "/api/v1/shares", "verb" => "PUT"]
]
]; \ No newline at end of file