diff --git a/patientsearch/api.py b/patientsearch/api.py index bc82193c..2270411f 100644 --- a/patientsearch/api.py +++ b/patientsearch/api.py @@ -143,8 +143,6 @@ def user_info(): @api_blueprint.route("/settings/") def config_settings(config_key): """Non-secret application settings""" - raise ValueError("it's me1!!!!!!!!!!!!") - return jsonify({"message": "ok"}) # workaround no JSON representation for datetime.timedelta class CustomJSONProvider(DefaultJSONProvider): @@ -163,7 +161,7 @@ def default(self, obj): jsonify_abort( status_code=400, messag=f"Configuration key {key} not available" ) - return {key: current_app.config.get(key)} + return jsonify({key: current_app.config.get(key)}) config_settings = {} for key in current_app.config: @@ -172,7 +170,7 @@ def default(self, obj): continue config_settings[key] = current_app.config.get(key) - return config_settings + return jsonify(config_settings) @api_blueprint.route("/validate_token", methods=["GET"])