aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-17 12:23:02 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-18 13:21:50 +0200
commitf52d763f50d10b8586c083919b287cc9a363f81e (patch)
treebf35a595fc209947f94c49286d45000fca579ab1
parentc59861a9fa1f0bc6fe6958abe99da9240af0d092 (diff)
downloadnextcloud-server-f52d763f50d10b8586c083919b287cc9a363f81e.tar.gz
nextcloud-server-f52d763f50d10b8586c083919b287cc9a363f81e.zip
enh(TextToImage): Add routes
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r--core/routes.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php
index fcb5a15cf01..a779b130ba2 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -155,6 +155,13 @@ $application->registerRoutes($this, [
['root' => '/textprocessing', 'name' => 'TextProcessingApi#getTask', 'url' => '/task/{id}', 'verb' => 'GET'],
['root' => '/textprocessing', 'name' => 'TextProcessingApi#deleteTask', 'url' => '/task/{id}', 'verb' => 'DELETE'],
['root' => '/textprocessing', 'name' => 'TextProcessingApi#listTasksByApp', 'url' => '/tasks/app/{appId}', 'verb' => 'GET'],
+
+ ['root' => '/text2image', 'name' => 'TextToImageApi#isAvailable', 'url' => '/is_available', 'verb' => 'GET'],
+ ['root' => '/text2image', 'name' => 'TextToImageApi#schedule', 'url' => '/schedule', 'verb' => 'POST'],
+ ['root' => '/text2image', 'name' => 'TextToImageApi#getTask', 'url' => '/task/{id}', 'verb' => 'GET'],
+ ['root' => '/text2image', 'name' => 'TextToImageApi#getImage', 'url' => '/task/{id}/image', 'verb' => 'GET'],
+ ['root' => '/text2image', 'name' => 'TextToImageApi#deleteTask', 'url' => '/task/{id}', 'verb' => 'DELETE'],
+ ['root' => '/text2image', 'name' => 'TextToImageApi#listTasksByApp', 'url' => '/tasks/app/{appId}', 'verb' => 'GET'],
],
]);