From 98d64ea05d67f6f6deb8d481512e777e776ad7c9 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 18 Jan 2024 10:38:37 +0100 Subject: refactor: Migrate IgnoreOpenAPI attributes to OpenAPI Signed-off-by: provokateurin --- apps/files_external/lib/Controller/ApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_external') diff --git a/apps/files_external/lib/Controller/ApiController.php b/apps/files_external/lib/Controller/ApiController.php index f9fbcdfeca8..591f73a28d7 100644 --- a/apps/files_external/lib/Controller/ApiController.php +++ b/apps/files_external/lib/Controller/ApiController.php @@ -34,7 +34,7 @@ use OCA\Files_External\ResponseDefinitions; use OCA\Files_External\Service\UserGlobalStoragesService; use OCA\Files_External\Service\UserStoragesService; use OCP\AppFramework\Http; -use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI; +use OCP\AppFramework\Http\Attribute\OpenAPI; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; use OCP\IRequest; @@ -131,7 +131,7 @@ class ApiController extends OCSController { * Ask for credentials using a browser's native basic auth prompt * Then returns it if provided */ - #[IgnoreOpenAPI] + #[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)] public function askNativeAuth(): DataResponse { if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { $response = new DataResponse([], Http::STATUS_UNAUTHORIZED); -- cgit v1.2.3