Files
bugsink/ingest/urls.py
Klaas van Schelven 937df4cbb8 minidump endpoint: support content encoding
adds readline() method to GeneratorReader (ChatGPT-generated; eyeballed for
correctness) to match the Django FILES/POST handling expectations.
2025-11-11 13:50:07 +01:00

13 lines
578 B
Python

from django.urls import path
from .views import IngestEventAPIView, IngestEnvelopeAPIView, MinidumpAPIView
urlpatterns = [
# project_pk has to be an int per Sentry Client expectations.
path("<int:project_pk>/store/", IngestEventAPIView.as_view(), name="ingest-store"),
path("<int:project_pk>/envelope/", IngestEnvelopeAPIView.as_view(), name="ingest-envelope"),
# is this "ingest"? it is at least in the sense that it matches the API schema and downstream auth etc.
path("<int:project_pk>/minidump/", MinidumpAPIView.as_view(), name="ingest-minidump"),
]