fix: base 取消coreapi文档因为drf已不再支持
This commit is contained in:
parent
d4b7aa9ed1
commit
c55b162cdc
|
@ -69,9 +69,10 @@ urlpatterns = [
|
||||||
|
|
||||||
|
|
||||||
# api文档
|
# api文档
|
||||||
path('api/docs/', include_docs_urls(title="接口文档", authentication_classes=[], permission_classes=[])),
|
path('api/swagger/', schema_view.with_ui('swagger',
|
||||||
path('api/swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
|
cache_timeout=0), name='schema-swagger-ui'),
|
||||||
path('api/redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
|
path('api/redoc/', schema_view.with_ui('redoc',
|
||||||
|
cache_timeout=0), name='schema-redoc'),
|
||||||
# 前端页面入口
|
# 前端页面入口
|
||||||
path('', TemplateView.as_view(template_name="index.html")),
|
path('', TemplateView.as_view(template_name="index.html")),
|
||||||
] + \
|
] + \
|
||||||
|
|
Loading…
Reference in New Issue