From a103b9834596abaecf21584ff08543a9ee4315db Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 21 Oct 2021 16:12:20 +0200 Subject: upload image file via Text API call for more flexibility in saved file location Signed-off-by: Julien Veyssier --- appinfo/routes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'appinfo/routes.php') 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'], -- cgit v1.2.3