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:
authorJulien Veyssier <eneiluj@posteo.net>2021-10-21 17:12:20 +0300
committerJulien Veyssier <eneiluj@posteo.net>2022-01-03 12:27:34 +0300
commita103b9834596abaecf21584ff08543a9ee4315db (patch)
tree8df0eae96882d656c41d9d6bb00831fa625326db /appinfo/routes.php
parentcb463ead759e40311b7b4154996a2790ea692db1 (diff)
upload image file via Text API call for more flexibility in saved file location
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 75d7bf23d..33cfebf24 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -27,7 +27,8 @@ namespace OCA\Text\AppInfo;
return [
'routes' => [
- ['name' => 'Image#downloadImageLink', 'url' => '/image/link', 'verb' => 'POST'],
+ ['name' => 'Image#insertImageLink', 'url' => '/image/link', 'verb' => 'POST'],
+ ['name' => 'Image#uploadImage', 'url' => '/image/upload', 'verb' => 'POST'],
['name' => 'Session#create', 'url' => '/session/create', 'verb' => 'PUT'],
['name' => 'Session#fetch', 'url' => '/session/fetch', 'verb' => 'POST'],