This commit is contained in:
jeremygan2021
2026-02-10 22:55:50 +08:00
parent c55c4ca374
commit 33f7606259
12 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ urlpatterns = [
# Swagger文档路由
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('api/docs/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
path('docs/swagger/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui-alias'),
path('api/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
]