Skip to content

Commit b62a781

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix(TextProcessingApiController): Set better attribute on routes
Signed-off-by: Marcel Klehr <mklehr@gmx.net> [skip ci]
1 parent dd312df commit b62a781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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 {

0 commit comments

Comments
 (0)