Example #1
0
 def index(cx):
     return text_type(cx.session['foo'])
Example #2
0
 def add(cx):
     json = cx.get_json()
     return text_type(json["a"] + json["b"])
Example #3
0
 def return_json(cx):
     return cx.jsonify(foo=text_type(cx.get_json()))
Example #4
0
 def test(cx):
     return text_type(cx.session.permanent)