Skip to content

Commit 71d4cf9

Browse files
Merge pull request #55772 from nextcloud/backport/55732/stable29
[stable29] fix(TextProcessingApiController): Set better attribute on routes
2 parents b3847c1 + 0d79f64 commit 71d4cf9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

core/Controller/TextProcessingApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function taskTypes(): DataResponse {
112112
* 400: Scheduling task is not possible
113113
* 412: Scheduling task is not possible
114114
*/
115-
#[PublicPage]
115+
#[NoAdminRequired]
116116
#[UserRateLimit(limit: 20, period: 120)]
117117
#[AnonRateLimit(limit: 5, period: 120)]
118118
#[ApiRoute(verb: 'POST', url: '/schedule', root: '/textprocessing')]
@@ -152,7 +152,7 @@ public function schedule(string $input, string $type, string $appId, string $ide
152152
* 200: Task returned
153153
* 404: Task not found
154154
*/
155-
#[PublicPage]
155+
#[NoAdminRequired]
156156
#[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/textprocessing')]
157157
public function getTask(int $id): DataResponse {
158158
try {

core/openapi.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3451,7 +3451,6 @@
34513451
"text_processing_api"
34523452
],
34533453
"security": [
3454-
{},
34553454
{
34563455
"bearer_auth": []
34573456
},
@@ -3671,7 +3670,6 @@
36713670
"text_processing_api"
36723671
],
36733672
"security": [
3674-
{},
36753673
{
36763674
"bearer_auth": []
36773675
},

0 commit comments

Comments
 (0)