diff options
author | provokateurin <kate@provokateurin.de> | 2024-01-18 10:38:37 +0100 |
---|---|---|
committer | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-01-19 09:12:34 +0100 |
commit | 98d64ea05d67f6f6deb8d481512e777e776ad7c9 (patch) | |
tree | 30042f2c4cb6b4e3385d003c2dc2e51206852c02 /apps/files_external | |
parent | 442092300923970453e6d4873d9a9d612e94a608 (diff) | |
download | nextcloud-server-98d64ea05d67f6f6deb8d481512e777e776ad7c9.tar.gz nextcloud-server-98d64ea05d67f6f6deb8d481512e777e776ad7c9.zip |
refactor: Migrate IgnoreOpenAPI attributes to OpenAPI
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/files_external')
-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); |