summaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-10-11 20:15:26 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-10-12 17:52:13 +0000
commit1d02efdd8b04f1a821ce824d293b0a2e47b3bf37 (patch)
treefbc8d4c35242f68123ace72721fa5bba86f332ab /apps/files/appinfo
parent8e89c281a57f8d3f011b89d8ebacc188c905dd39 (diff)
downloadnextcloud-server-1d02efdd8b04f1a821ce824d293b0a2e47b3bf37.tar.gz
nextcloud-server-1d02efdd8b04f1a821ce824d293b0a2e47b3bf37.zip
Require a token for "Edit locally"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r--apps/files/appinfo/routes.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index 2aeef05558c..6c94490b085 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -37,6 +37,8 @@ declare(strict_types=1);
*/
namespace OCA\Files\AppInfo;
+use OCA\Files\Controller\OpenLocalEditorController;
+
/** @var Application $application */
$application = \OC::$server->query(Application::class);
$application->registerRoutes(
@@ -169,6 +171,18 @@ $application->registerRoutes(
'url' => '/api/v1/transferownership/{id}',
'verb' => 'DELETE',
],
+ [
+ /** @see OpenLocalEditorController::create() */
+ 'name' => 'OpenLocalEditor#create',
+ 'url' => '/api/v1/openlocaleditor',
+ 'verb' => 'POST',
+ ],
+ [
+ /** @see OpenLocalEditorController::validate() */
+ 'name' => 'OpenLocalEditor#validate',
+ 'url' => '/api/v1/openlocaleditor/{token}',
+ 'verb' => 'POST',
+ ],
],
]
);