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:
authorAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-05-12 19:16:06 +0300
committerAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-05-16 14:17:15 +0300
commit861c7bb7441fe34a4eb70221b165a94f913a494d (patch)
tree81818c81d32fd6a9961518d989e68f8c917a19af /appinfo
parent2ac37457cebba68c0b3f0cffd532d3b9de7c7581 (diff)
display available shares list to tab
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php14
-rw-r--r--appinfo/routes.php3
2 files changed, 16 insertions, 1 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index c5c1ec8..fbbc7f6 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;
@@ -158,6 +159,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 958be88..80ecd7e 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -48,6 +48,7 @@ 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"]
]
]; \ No newline at end of file