Fix in-app host URL

This commit is contained in:
Joshua Boniface 2019-12-23 21:15:26 -05:00
parent d75a9749ac
commit 142e1f186d
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class API_Doc(Resource):
swagger_data = swagger(pvc_api.app)
swagger_data['info']['version'] = API_VERSION
swagger_data['info']['title'] = "PVC Client and Provisioner API"
swagger_data['info']['url'] = "{}://{}:{}".format(scheme, config['listen_address'], config['listen_port'])
swagger_data['host'] = "{}://{}:{}".format(scheme, config['listen_address'], config['listen_port'])
return swagger_data
api.add_resource(API_Doc, '/doc')