"""
URL routing for Contract/E-Signature system.
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r"templates", views.ContractTemplateViewSet, basename="contract-template")
router.register(r"requirements", views.ServiceContractRequirementViewSet, basename="contract-requirement")
router.register(r"", views.ContractViewSet, basename="contract")

urlpatterns = [
    path("sign/<str:token>/", views.PublicContractSigningView.as_view(), name="contract-sign"),
    path("", include(router.urls)),
]
