Beispiel #1
0
def get_sitetree():
    s = SiteTree.get_sitetree()
    resp = make_response(json.dumps(s), 200)
    resp.headers['Content-Type'] = 'application/json'
    return resp
    return jsonify(data=s)
Beispiel #2
0
 def sitetree(self):
     s = SiteTree.get_sitetree()
     print(s)
     resp = make_response(json.dumps(s), 200)
     resp.headers['Content-Type'] = 'application/json'
     return resp
Beispiel #3
0
def get_sitetree():
    s = SiteTree.get_sitetree()
    resp = make_response(json.dumps(s), 200)
    resp.headers['Content-Type'] = 'application/json'
    return resp
    return jsonify(data=s)