diff --git a/core/views/app_links.py b/core/views/app_links.py index 157948d..9f57ef3 100644 --- a/core/views/app_links.py +++ b/core/views/app_links.py @@ -1,3 +1,4 @@ +import json import os from django.conf import settings @@ -15,8 +16,8 @@ def get(self, request, *args, **kwargs): try: with open(assetlinks_path, 'r') as file: - file_content = file.read() + file_content = json.loads(file.read()) except Exception as e: return JsonResponse({'error': f"An error occurred: {e}"}, status=500) - return JsonResponse({'file_content': file_content}) + return JsonResponse(file_content, safe=False)