mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
16 lines
628 B
Python
16 lines
628 B
Python
''' Main URL router '''
|
|
from rest_framework.documentation import include_docs_urls
|
|
from django.contrib import admin
|
|
from django.shortcuts import redirect
|
|
from django.urls import path, include
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('api/', include('apps.rsform.urls')),
|
|
path('users/', include('apps.users.urls')),
|
|
path('docs/', include_docs_urls(title='ConceptPortal API'), name='docs'),
|
|
path('', lambda request: redirect('docs/', permanent=True)),
|
|
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|