fix: base 取消coreapi文档因为drf已不再支持

This commit is contained in:
caoqianming 2023-11-23 17:19:02 +08:00
parent d4b7aa9ed1
commit c55b162cdc
1 changed files with 4 additions and 3 deletions

View File

@ -69,9 +69,10 @@ urlpatterns = [
# api文档
path('api/docs/', include_docs_urls(title="接口文档", authentication_classes=[], permission_classes=[])),
path('api/swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
path('api/redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
path('api/swagger/', schema_view.with_ui('swagger',
cache_timeout=0), name='schema-swagger-ui'),
path('api/redoc/', schema_view.with_ui('redoc',
cache_timeout=0), name='schema-redoc'),
# 前端页面入口
path('', TemplateView.as_view(template_name="index.html")),
] + \