from flask import current_app @api.route("/info") def get_account_num(): num = current_app.config["INFO"]