diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2021-10-21 17:12:20 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-01-03 12:27:34 +0300 |
commit | a103b9834596abaecf21584ff08543a9ee4315db (patch) | |
tree | 8df0eae96882d656c41d9d6bb00831fa625326db /appinfo | |
parent | cb463ead759e40311b7b4154996a2790ea692db1 (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')
-rw-r--r-- | appinfo/routes.php | 3 |
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'], |