diff --git a/app/api/resources/app.py b/app/api/resources/app.py index 4e874b3..3b6f2fb 100644 --- a/app/api/resources/app.py +++ b/app/api/resources/app.py @@ -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