Basic Website Design

This commit is contained in:
Lucas
2021-07-11 16:48:38 -04:00
parent e2e0c99132
commit f3f7ab49b0
5 changed files with 119 additions and 14 deletions

View File

@@ -24,6 +24,9 @@ def get_mta_data():
subway_data
)
@app.route("/stops", methods=["GET"])
def get_routes():
return jsonify()
if __name__ == "__main__":
api_key = os.getenv('MTA_API_KEY', '')
@@ -62,7 +65,7 @@ if __name__ == "__main__":
for t in threads:
t.start()
app.run("0.0.0.0", port=5000)
app.run("0.0.0.0", port=5000, debug=True)
# Wait for all threads to complete
for t in threads:
t.join()