aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Controller/UserThemeController.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-12-17 13:17:22 +0100
committerprovokateurin <kate@provokateurin.de>2025-01-06 14:30:40 +0100
commit085d4c93647bef0136ce8c639c7567ed659217f2 (patch)
tree5d597784bce2fca6f0f1c299302ed3500557458f /apps/theming/lib/Controller/UserThemeController.php
parentf52aa9ad328b813ca63a0891be4234a21cbfad27 (diff)
downloadnextcloud-server-085d4c93647bef0136ce8c639c7567ed659217f2.tar.gz
nextcloud-server-085d4c93647bef0136ce8c639c7567ed659217f2.zip
refactor(OpenAPI): Adjust scopes to match previous behavior
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/theming/lib/Controller/UserThemeController.php')
-rw-r--r--apps/theming/lib/Controller/UserThemeController.php2
1 files changed, 2 insertions, 0 deletions
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) {