Skip to content

Commit

Permalink
enh(TextToImage): Add routes
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Oct 17, 2023
1 parent 06df72e commit 67ad446
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@
['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' => 'TextToImageControllerApi#isAvailable', 'url' => '/is_available', 'verb' => 'GET'],
['root' => '/text2image', 'name' => 'TextToImageControllerApi#schedule', 'url' => '/schedule', 'verb' => 'POST'],
['root' => '/text2image', 'name' => 'TextToImageControllerApi#getTask', 'url' => '/task/{id}', 'verb' => 'GET'],
['root' => '/text2image', 'name' => 'TextToImageControllerApi#getImage', 'url' => '/task/{id}/image', 'verb' => 'GET'],
['root' => '/text2image', 'name' => 'TextToImageControllerApi#deleteTask', 'url' => '/task/{id}', 'verb' => 'DELETE'],
['root' => '/text2image', 'name' => 'TextToImageControllerApi#listTasksByApp', 'url' => '/tasks/app/{appId}', 'verb' => 'GET'],
],
]);

Expand Down

0 comments on commit 67ad446

Please sign in to comment.