Explorar o código

Fixes #723: API documentation is now accessible when using BASE_PATH

Jeremy Stretch %!s(int64=9) %!d(string=hai) anos
pai
achega
28b586aca7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/netbox/settings.py

+ 1 - 1
netbox/netbox/settings.py

@@ -188,7 +188,7 @@ REST_FRAMEWORK = {
 
 # Swagger settings (API docs)
 SWAGGER_SETTINGS = {
-    'base_path': '{}/api/docs'.format(ALLOWED_HOSTS[0]),
+    'base_path': '{}/{}api/docs'.format(ALLOWED_HOSTS[0], BASE_PATH),
 }