You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
524 B

from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
import json
def index(request):
return HttpResponse("Hello, world. You're at the subs index.")
def test(request):
return HttpResponse("Test succeeded!")
def app_store_webhook(request):
data = request.body.decode('utf-8')
# Parse the JSON payload
payload = json.loads(data)
notification = ASSNotification(
content=payload,
)
notification.save()
return JsonResponse({'status': 'success'})