"""
URL configuration for error monitoring API.
"""

from django.urls import path

from apps.core.api.error_views import (
    ErrorCleanupView,
    ErrorDetailView,
    ErrorListView,
    ErrorReportView,
    ErrorResolveView,
    ErrorStatisticsView,
)

app_name = "errors"

urlpatterns = [
    # Public endpoint (rate-limited)
    path("report/", ErrorReportView.as_view(), name="report"),
    # Admin endpoints
    path("", ErrorListView.as_view(), name="list"),
    path("statistics/", ErrorStatisticsView.as_view(), name="statistics"),
    path("cleanup/", ErrorCleanupView.as_view(), name="cleanup"),
    path("<int:pk>/", ErrorDetailView.as_view(), name="detail"),
    path("<int:pk>/resolve/", ErrorResolveView.as_view(), name="resolve"),
]
