2023-11-30 11:19:06 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from rest_framework.routers import DefaultRouter, SimpleRouter
|
|
|
|
|
|
|
|
from fwd_api.api.ctel_view import CtelViewSet
|
2024-02-21 09:22:32 +00:00
|
|
|
from fwd_api.api.accuracy_view import AccuracyViewSet, RequestViewSet
|
2024-01-05 07:18:16 +00:00
|
|
|
|
2023-11-30 11:19:06 +00:00
|
|
|
from fwd_api.api.ctel_user_view import CtelUserViewSet
|
|
|
|
|
|
|
|
from fwd_api.api.ctel_template_view import CtelTemplateViewSet
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
router = DefaultRouter()
|
|
|
|
else:
|
|
|
|
router = SimpleRouter()
|
|
|
|
|
|
|
|
router.register("ctel", CtelViewSet, basename="CtelAPI")
|
|
|
|
router.register("ctel", CtelUserViewSet, basename="CtelUserAPI")
|
2024-01-05 07:18:16 +00:00
|
|
|
router.register("ctel", AccuracyViewSet, basename="AccuracyAPI")
|
2024-01-26 09:37:12 +00:00
|
|
|
router.register("ctel", RequestViewSet, basename="RequestAPI")
|
2023-11-30 11:19:06 +00:00
|
|
|
|
|
|
|
app_name = "api"
|
|
|
|
urlpatterns = router.urls
|