from django.urls import include, path
from rest_framework.routers import DefaultRouter

from .views import EventMappingViewSet, InboundEventViewSet, IntegrationConfigViewSet

app_name = 'integrations'

router = DefaultRouter()
router.register(r'events', InboundEventViewSet, basename='inbound-event')
router.register(r'configs', IntegrationConfigViewSet, basename='integration-config')
router.register(r'mappings', EventMappingViewSet, basename='event-mapping')

urlpatterns = [
    path('', include(router.urls)),
]
