Add: footer, meta info, move api to footer

This commit is contained in:
2023-09-07 22:32:54 +09:00
parent 016994d594
commit 3672d8b321
9 changed files with 46 additions and 25 deletions

View File

@@ -200,7 +200,7 @@ if DEBUG:
SPECTACULAR_SETTINGS = {
'TITLE': 'Logs collector API',
'DESCRIPTION': 'Collector of archives with log files for further analysis',
'VERSION': '0.1.0',
'VERSION': VERSION,
'SERVE_INCLUDE_SCHEMA': True,
'SERVE_PUBLIC': False,
}

View File

@@ -1,12 +1,7 @@
from django.contrib import admin
from django.urls import path, include
from drf_spectacular.views import (
SpectacularAPIView,
SpectacularRedocView,
SpectacularSwaggerView
)
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
from two_factor.urls import urlpatterns as tf_urls
from account.utils import AdminSiteOTPRequiredMixinRedirectSetup
@@ -48,9 +43,4 @@ urlpatterns += [
SpectacularSwaggerView.as_view(url_name='schema'),
name='swagger-ui'
),
path(
'api/v1/schema/redoc/',
SpectacularRedocView.as_view(url_name='schema'),
name='redoc'
),
]