aboutsummaryrefslogtreecommitdiffstats
path: root/core/routes.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-08-04 15:41:35 +0200
committerJulien Veyssier <julien-nc@posteo.net>2023-08-07 13:27:53 +0200
commitfca1c309a025e34cc5d635766796d9e5b4f9386b (patch)
treece58c89a3993a73ed18d64407100d1869302d629 /core/routes.php
parent05a6a799a7e05f90c9d1eb10b5a41800457e1749 (diff)
downloadnextcloud-server-fca1c309a025e34cc5d635766796d9e5b4f9386b.tar.gz
nextcloud-server-fca1c309a025e34cc5d635766796d9e5b4f9386b.zip
feat: Add delete task API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/routes.php')
-rw-r--r--core/routes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php
index 90578ee6f0d..ad8638e0b1e 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -149,6 +149,7 @@ $application->registerRoutes($this, [
['root' => '/textprocessing', 'name' => 'TextProcessingApi#taskTypes', 'url' => '/tasktypes', 'verb' => 'GET'],
['root' => '/textprocessing', 'name' => 'TextProcessingApi#schedule', 'url' => '/schedule', 'verb' => 'POST'],
['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'],
],
]);