Commit 626a818c authored by Landon DeCoito's avatar Landon DeCoito

moved some stuff around i think

parent 45ed3dd9
......@@ -8,9 +8,9 @@ app = Flask(__name__)
@app.route("/")
def display_default():
resp = Response(("Welcome to the masontoday API! Go to https://git.gmu.edu/srct/mason-today-web <br/><br/>"
+ "Feel free to go to /api/25live/ or /api/getconnected/ to find our api!").encode('utf-8'))
return resp
resp = Response(("Welcome to the masontoday API! Go to https://git.gmu.edu/srct/mason-today-web <br/><br/>"
+ "Feel free to go to /api/25live/ or /api/getconnected/ to find our api!").encode('utf-8'))
return resp
@app.route("/api/25live")
def display_data():
......@@ -21,6 +21,6 @@ def display_data():
@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'
return resp
resp = Response(json.dumps(load_getconn_data(), ensure_ascii=False).encode('utf-8'))
resp.headers['Content-Type'] = 'application/json; charset=utf-8'
return resp
This diff is collapsed.
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