urls.py 431 B

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