catch (ClientException
$exception) { throw new StoreApiException($exception);
} return new JsonResponse();
} #[Route(path: '/api/_action/store/license-domains', name: 'api.custom.store.license-domains', methods: ['GET'])]
public function getDomainList(Context
$context): JsonResponse
{ try { $domains =
$this->frwService->
getLicenseDomains($context);
} catch (ClientException
$exception) { throw new StoreApiException($exception);
} return new JsonResponse([ 'items' =>
$domains,
'total' => \
count($domains),
]);
} #[Route(path: '/api/_action/store/verify-license-domain', name: 'api.custom.store.verify-license-domain', methods: ['POST'])]