mirror of
https://github.com/nextcloud/server.git
synced 2026-05-14 01:21:32 -04:00
fix(TextProcessingApiController): Set better attribute on routes
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
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": []
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue