def index(cx): return text_type(cx.session['foo'])
def add(cx): json = cx.get_json() return text_type(json["a"] + json["b"])
def return_json(cx): return cx.jsonify(foo=text_type(cx.get_json()))
def test(cx): return text_type(cx.session.permanent)