mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
17 lines
508 B
Python
17 lines
508 B
Python
from django.urls import path
|
|
from rest_framework.routers import DefaultRouter
|
|
from .api_views import (
|
|
IntegrationViewSet,
|
|
EventSubscriptionViewSet,
|
|
DeliveryLogViewSet,
|
|
)
|
|
|
|
app_name = 'connect'
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'integrations', IntegrationViewSet, basename='integration')
|
|
router.register(r'subscriptions', EventSubscriptionViewSet, basename='subscription')
|
|
router.register(r'logs', DeliveryLogViewSet, basename='delivery-log')
|
|
|
|
urlpatterns = []
|
|
urlpatterns += router.urls
|