2024-11-23 21:55:32 +08:00
|
|
|
from config.settings import MEDIA_ROOT
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from django.contrib import admin
|
|
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
|
|
from django.urls import include, path
|
|
|
|
from drf_spectacular.views import (
|
|
|
|
SpectacularAPIView,
|
|
|
|
SpectacularRedocView,
|
|
|
|
SpectacularSwaggerView,
|
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("accounts/", include("accounts.urls")),
|
2024-11-23 23:02:52 +08:00
|
|
|
path("documents/", include("documents.urls")),
|
2024-11-24 02:20:18 +08:00
|
|
|
path("requests/", include("document_requests.urls")),
|
2025-01-09 02:10:42 +08:00
|
|
|
path("authorization_requests/", include("authorization_requests.urls")),
|
2024-11-24 10:34:41 +08:00
|
|
|
path("questionnaires/", include("questionnaires.urls")),
|
2024-11-23 21:55:32 +08:00
|
|
|
path("admin/", admin.site.urls),
|
|
|
|
path("schema/", SpectacularAPIView.as_view(), name="schema"),
|
|
|
|
path(
|
|
|
|
"swagger/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"
|
|
|
|
),
|
|
|
|
path("redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
|
|
|
]
|
|
|
|
urlpatterns += staticfiles_urlpatterns()
|
|
|
|
urlpatterns += static("media/", document_root=MEDIA_ROOT)
|