from django.urls import path from django.conf import settings from .views import EventStoreAPIView, CSPStoreAPIView, test_event_view, EnvelopeAPIView urlpatterns = [ path("/store/", EventStoreAPIView.as_view(), name="event_store"), path("/security/", CSPStoreAPIView.as_view(), name="csp_store"), path("/envelope/", EnvelopeAPIView.as_view(), name="envelope_store"), ] if settings.DEBUG: urlpatterns += [path("event-test/", test_event_view)]