diff options
author | provokateurin <kate@provokateurin.de> | 2024-01-18 10:38:37 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-01-18 16:14:17 +0100 |
commit | b64ab5fba86f55e59ebb8983a143d640d0c6a7a1 (patch) | |
tree | cfcf4a64885acf9f2f19a163014094d706c2ba10 /apps/files_external/lib/Controller | |
parent | 14c57ee708101d31838d468e8e5923e9dd8c7919 (diff) | |
download | nextcloud-server-b64ab5fba86f55e59ebb8983a143d640d0c6a7a1.tar.gz nextcloud-server-b64ab5fba86f55e59ebb8983a143d640d0c6a7a1.zip |
refactor: Migrate IgnoreOpenAPI attributes to OpenAPI
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/files_external/lib/Controller')
-rw-r--r-- | apps/files_external/lib/Controller/ApiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |