From 817c6f238c12b895c513ae3369639aa8c7f7fcaa Mon Sep 17 00:00:00 2001 From: Stepan Date: Tue, 30 Dec 2025 19:27:06 +0100 Subject: [PATCH] swagger auth fixed --- app/Http/Controllers/UserTestController.php | 2 +- storage/api-docs/api-docs.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserTestController.php b/app/Http/Controllers/UserTestController.php index 9642bf5..61617d9 100644 --- a/app/Http/Controllers/UserTestController.php +++ b/app/Http/Controllers/UserTestController.php @@ -51,7 +51,7 @@ class UserTestController extends Controller * summary="Get a list of user tests (only creator or admin)", * description="Returns all user tests. Only the creator or an admin can access this endpoint.", * tags={"UserTests"}, - * security={{"sanctum":{}}}, + * security={{"bearerAuth":{}}}, * @OA\Parameter( * name="test_id", * in="query", diff --git a/storage/api-docs/api-docs.json b/storage/api-docs/api-docs.json index 75e0b2d..10555b5 100644 --- a/storage/api-docs/api-docs.json +++ b/storage/api-docs/api-docs.json @@ -2403,7 +2403,7 @@ }, "security": [ { - "sanctum": [] + "bearerAuth": [] } ] },