"""Top-level DMS API URL configuration."""

from __future__ import annotations

from django.urls import include, path

from simorgh.apps.dms.settings_api import dms_settings_view

urlpatterns = [
    path("assets/", include("simorgh.apps.dms.assets.urls")),
    path("repositories/", include("simorgh.apps.dms.repositories.urls")),
    # Versioning must come before documents so versions/diff/ is not swallowed
    # by the documents versions/<version_id>/ catch-all.
    path("", include("simorgh.apps.dms.versioning.urls")),
    path("", include("simorgh.apps.dms.documents.urls")),
    path("", include("simorgh.apps.dms.preview.urls")),
    path("", include("simorgh.apps.dms.permissions.urls")),
    path("", include("simorgh.apps.dms.search.urls")),
    path("", include("simorgh.apps.dms.collaboration.urls")),
    path("", include("simorgh.apps.dms.records.urls")),
    path("", include("simorgh.apps.dms.ai.urls")),
    path("", include("simorgh.apps.dms.audit.urls")),
    path("settings/", dms_settings_view),
    path("", include("simorgh.apps.dms.workflow.urls")),
]
