From 085d4c93647bef0136ce8c639c7567ed659217f2 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 17 Dec 2024 13:17:22 +0100 Subject: refactor(OpenAPI): Adjust scopes to match previous behavior Signed-off-by: provokateurin --- apps/theming/lib/Controller/UserThemeController.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/theming/lib/Controller/UserThemeController.php') diff --git a/apps/theming/lib/Controller/UserThemeController.php b/apps/theming/lib/Controller/UserThemeController.php index 1ead97f5d37..770f2ca922f 100644 --- a/apps/theming/lib/Controller/UserThemeController.php +++ b/apps/theming/lib/Controller/UserThemeController.php @@ -17,6 +17,7 @@ use OCA\Theming\ThemingDefaults; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; +use OCP\AppFramework\Http\Attribute\OpenAPI; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\FileDisplayResponse; use OCP\AppFramework\Http\JSONResponse; @@ -130,6 +131,7 @@ class UserThemeController extends OCSController { */ #[NoAdminRequired] #[NoCSRFRequired] + #[OpenAPI(scope: OpenAPI::SCOPE_DEFAULT)] public function getBackground(): Response { $file = $this->backgroundService->getBackground(); if ($file !== null) { -- cgit v1.2.3