Ejemplo n.º 1
0
def neighbors():
    d = {}
    d['me'] = data.fetch_identity()
    d['neighbors'] = neighbor.load_neighbors()
    jsonresponse = json.dumps(d)
    response = make_response(str(jsonresponse), 200)
    response.headers['Content-Type'] = 'application/json'
    response.headers['Access-Control-Allow-Origin']= '*'
    return response
Ejemplo n.º 2
0
def something():
    identity = data.fetch_identity()
    response=make_response("I'm made of Redmatter.  My name is " + str(identity), 200)
    response.headers['Access-Control-Allow-Origin']= '*'
    return response