Fix mqtt config dumping to include content root

develop
Ensar Sarajčić 2018-11-04 13:19:13 +01:00
parent 95adfcf6aa
commit 9dd8fa1d8d
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ def get_mqtt_endpoints(config):
class MqttConfigResource(ProtectedResource):
@swag_from('swagger/get_mqtt_config_spec.yaml')
def get(self):
return {
return MqttConfigSchema().dump({
'broker': get_mqtt_broker_info(app.config),
'endpoints': get_mqtt_endpoints(app.config)
}, 200
}), 200