22 lines
694 B
Python
22 lines
694 B
Python
"""
|
|
URL configuration for incident intelligence
|
|
"""
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views.incident import (
|
|
IncidentViewSet, IncidentCorrelationViewSet,
|
|
DuplicationDetectionViewSet, IncidentPatternViewSet
|
|
)
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'incidents', IncidentViewSet, basename='incident')
|
|
router.register(r'correlations', IncidentCorrelationViewSet, basename='correlation')
|
|
router.register(r'duplications', DuplicationDetectionViewSet, basename='duplication')
|
|
router.register(r'patterns', IncidentPatternViewSet, basename='pattern')
|
|
|
|
app_name = 'incidents'
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|