urls.py 485 B

12345678910111213
  1. from django.conf import settings
  2. from django.urls import path
  3. from .views import CSPStoreAPIView, EnvelopeAPIView, EventStoreAPIView, test_event_view
  4. urlpatterns = [
  5. path("<int:id>/store/", EventStoreAPIView.as_view(), name="event_store"),
  6. path("<int:id>/security/", CSPStoreAPIView.as_view(), name="csp_store"),
  7. path("<int:id>/envelope/", EnvelopeAPIView.as_view(), name="envelope_store"),
  8. ]
  9. if settings.DEBUG:
  10. urlpatterns += [path("event-test/", test_event_view)]