1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

This commit is contained in:
Jeremy Stretch
2016-12-06 14:08:25 -05:00
parent f007b0dbde
commit 28b586aca7

View File

@ -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),
}