aboutsummaryrefslogtreecommitdiffstats
path: root/core/routes.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-07 14:13:04 +0100
committerJulius Härtl <jus@bitgrid.net>2023-02-27 16:52:03 +0100
commit3e6329838158892e3b89c7e5116fa313c282a8a1 (patch)
tree0e55e55fc3053b1263cf3a39fdfa25665fe3388e /core/routes.php
parent0d67fc23f4077e7b06a01bc519957f3f13d95f10 (diff)
downloadnextcloud-server-3e6329838158892e3b89c7e5116fa313c282a8a1.tar.gz
nextcloud-server-3e6329838158892e3b89c7e5116fa313c282a8a1.zip
feat(translations): Add translation provider API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/routes.php')
-rw-r--r--core/routes.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php
index dcf8e4024af..0f9729e54eb 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -143,6 +143,8 @@ $application->registerRoutes($this, [
['root' => '/search', 'name' => 'UnifiedSearch#getProviders', 'url' => '/providers', 'verb' => 'GET'],
['root' => '/search', 'name' => 'UnifiedSearch#search', 'url' => '/providers/{providerId}/search', 'verb' => 'GET'],
+ ['root' => '/translation', 'name' => 'TranslationApi#languages', 'url' => '/languages', 'verb' => 'GET'],
+ ['root' => '/translation', 'name' => 'TranslationApi#translate', 'url' => '/translate', 'verb' => 'POST'],
],
]);