mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
16 lines
663 B
Python
16 lines
663 B
Python
''' Main URL router '''
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.contrib import admin
|
|
from django.urls import include, path
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
|
|
|
|
urlpatterns = [
|
|
path('admin', admin.site.urls),
|
|
path('api/', include('apps.rsform.urls')),
|
|
path('users/', include('apps.users.urls')),
|
|
path('schema', SpectacularAPIView.as_view(), name='schema'),
|
|
path('redoc', SpectacularRedocView.as_view()),
|
|
path('', SpectacularSwaggerView.as_view(), name='home'),
|
|
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|