Commit 22120e5f authored by Landon DeCoito's avatar Landon DeCoito

API JSON hosting is now routed to /api/getconnected or /api/25live

parent f6c6a179
......@@ -6,13 +6,13 @@ import json
app = Flask(__name__)
@app.route("/25Live")
@app.route("/api/25live")
def display_data():
resp = Response(json.dumps(load_data(), ensure_ascii=False).encode('utf-8'))
resp.headers['Content-Type'] = 'application/json; charset=utf-8'
return resp
@app.route("/getconn")
@app.route("/api/getconnected")
def display_GC_data():
resp = Response(json.dumps(load_getconn_data(), ensure_ascii=False).encode('utf-8'))
resp.headers['Content-Type'] = 'application/json; charset=utf-8'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment