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

# Create a router and register our viewsets
router = DefaultRouter()
router.register(r'submissions', ContactSubmissionViewSet, basename='contact-submission')

# The API URLs are now determined automatically by the router
urlpatterns = [
    path('', include(router.urls)),
]
