urls.py 484 B

123456789101112
  1. from django.urls import path
  2. from django.conf import settings
  3. from .views import EventStoreAPIView, CSPStoreAPIView, test_event_view, EnvelopeAPIView
  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)]