Fixes #21354: Fix Swagger-UI generating wrong URLs when BASE_PATH is set (#21392)

This commit is contained in:
Aditya Sharma
2026-02-12 01:05:13 +05:30
committed by GitHub
parent 24769ce127
commit 4b22be03a0

View File

@@ -773,7 +773,7 @@ SPECTACULAR_SETTINGS = {
'COMPONENT_SPLIT_REQUEST': True,
'REDOC_DIST': 'SIDECAR',
'SERVERS': [{
'url': BASE_PATH,
'url': '',
'description': 'NetBox',
}],
'SWAGGER_UI_DIST': 'SIDECAR',