diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-07 14:13:04 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-02-27 16:52:03 +0100 |
commit | 3e6329838158892e3b89c7e5116fa313c282a8a1 (patch) | |
tree | 0e55e55fc3053b1263cf3a39fdfa25665fe3388e /core/routes.php | |
parent | 0d67fc23f4077e7b06a01bc519957f3f13d95f10 (diff) | |
download | nextcloud-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.php | 2 |
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'], ], ]); |