diff --git a/core/Controller/TranslationApiController.php b/core/Controller/TranslationApiController.php index c8077987cb8e0..a09f7e6aba96f 100644 --- a/core/Controller/TranslationApiController.php +++ b/core/Controller/TranslationApiController.php @@ -52,7 +52,7 @@ public function __construct( } /** - * @NoAdminRequired + * @PublicPage */ public function languages(): DataResponse { return new DataResponse([ @@ -62,7 +62,9 @@ public function languages(): DataResponse { } /** - * @NoAdminRequired + * @PublicPage + * @UserRateThrottle(limit=25, period=120) + * @AnonRateThrottle(limit=10, period=120) */ public function translate(string $text, ?string $fromLanguage, string $toLanguage): DataResponse { try {