diff --git a/subscriptions/urls.py b/subscriptions/urls.py index ce6c48f..12e0e20 100644 --- a/subscriptions/urls.py +++ b/subscriptions/urls.py @@ -1,9 +1,9 @@ from django.urls import path from . import views -from .views import app_store_webhook urlpatterns = [ path("", views.index, name="index"), - path('app-store-webhook/', app_store_webhook, name='app_store_webhook'), + path('app-store-webhook/', views.app_store_webhook, name='app_store_webhook'), + path('test/', views.test, name='test'), ] diff --git a/subscriptions/views.py b/subscriptions/views.py index cbfd81b..0dc8d53 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -4,6 +4,9 @@ from django.http import HttpResponse, JsonResponse 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')