diff options
Diffstat (limited to 'core/Controller/TranslationApiController.php')
-rw-r--r-- | core/Controller/TranslationApiController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Controller/TranslationApiController.php b/core/Controller/TranslationApiController.php index c8077987cb8..a09f7e6aba9 100644 --- a/core/Controller/TranslationApiController.php +++ b/core/Controller/TranslationApiController.php @@ -52,7 +52,7 @@ class TranslationApiController extends \OCP\AppFramework\OCSController { } /** - * @NoAdminRequired + * @PublicPage */ public function languages(): DataResponse { return new DataResponse([ @@ -62,7 +62,9 @@ class TranslationApiController extends \OCP\AppFramework\OCSController { } /** - * @NoAdminRequired + * @PublicPage + * @UserRateThrottle(limit=25, period=120) + * @AnonRateThrottle(limit=10, period=120) */ public function translate(string $text, ?string $fromLanguage, string $toLanguage): DataResponse { try { |