$themeConfiguration =
$this->themeService->
getThemeConfiguration($themeId, true,
$context);
return new JsonResponse($themeConfiguration);
} #[Route(path: '/api/_action/theme/{themeId}', name: 'api.action.theme.update', methods: ['PATCH'])]
public function updateTheme(string
$themeId, Request
$request, Context
$context): JsonResponse
{ $config =
$request->request->
all('config'
);
$this->themeService->
updateTheme( $themeId,
$config,
(string) $request->request->
get('parentThemeId'
),
$context );
return new JsonResponse([]);
} #[Route(path: '/api/_action/theme/{themeId}/assign/{salesChannelId}', name: 'api.action.theme.assign', methods: ['POST'])]
public function assignTheme(string
$themeId, string
$salesChannelId, Context
$context): JsonResponse
{