Skip to content

Commit 640fe5b

Browse files
authored
Merge pull request #55774 from nextcloud/backport/55732/stable31
[stable31] fix(TextProcessingApiController): Set better attribute on routes
2 parents dd312df + 809f1f0 commit 640fe5b

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

core/Controller/TextProcessingApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function taskTypes(): DataResponse {
9696
* 400: Scheduling task is not possible
9797
* 412: Scheduling task is not possible
9898
*/
99-
#[PublicPage]
99+
#[NoAdminRequired]
100100
#[UserRateLimit(limit: 20, period: 120)]
101101
#[AnonRateLimit(limit: 5, period: 120)]
102102
#[ApiRoute(verb: 'POST', url: '/schedule', root: '/textprocessing')]
@@ -136,7 +136,7 @@ public function schedule(string $input, string $type, string $appId, string $ide
136136
* 200: Task returned
137137
* 404: Task not found
138138
*/
139-
#[PublicPage]
139+
#[NoAdminRequired]
140140
#[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/textprocessing')]
141141
public function getTask(int $id): DataResponse {
142142
try {

core/openapi-full.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5491,7 +5491,6 @@
54915491
"text_processing_api"
54925492
],
54935493
"security": [
5494-
{},
54955494
{
54965495
"bearer_auth": []
54975496
},
@@ -5709,7 +5708,6 @@
57095708
"text_processing_api"
57105709
],
57115710
"security": [
5712-
{},
57135711
{
57145712
"bearer_auth": []
57155713
},

core/openapi.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5491,7 +5491,6 @@
54915491
"text_processing_api"
54925492
],
54935493
"security": [
5494-
{},
54955494
{
54965495
"bearer_auth": []
54975496
},
@@ -5709,7 +5708,6 @@
57095708
"text_processing_api"
57105709
],
57115710
"security": [
5712-
{},
57135711
{
57145712
"bearer_auth": []
57155713
},

0 commit comments

Comments
 (0)