Ejemplo n.º 1
0
def account_detail(identifier):
    account = AccountView.get_account_with_identifier(identifier)
    data = {'type': account.account_type, 'balance': account.balance}
    response = app.response_class(response=json.dumps(data),
                                  status=200,
                                  mimetype='application/json')
    return response