fix(TextProcessingApiController): Set better attribute on routes

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/55774/head
Marcel Klehr 2025-09-17 10:32:11 +07:00
parent dd312dfc55
commit 809f1f0693
3 changed files with 2 additions and 6 deletions

@ -96,7 +96,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
* 400: Scheduling task is not possible
* 412: Scheduling task is not possible
*/
#[PublicPage]
#[NoAdminRequired]
#[UserRateLimit(limit: 20, period: 120)]
#[AnonRateLimit(limit: 5, period: 120)]
#[ApiRoute(verb: 'POST', url: '/schedule', root: '/textprocessing')]
@ -136,7 +136,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
* 200: Task returned
* 404: Task not found
*/
#[PublicPage]
#[NoAdminRequired]
#[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/textprocessing')]
public function getTask(int $id): DataResponse {
try {

@ -5491,7 +5491,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},
@ -5709,7 +5708,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},

@ -5491,7 +5491,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},
@ -5709,7 +5708,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},