Skip to content

Instantly share code, notes, and snippets.

@MikeShi42
Last active September 18, 2018 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeShi42/6dff9c1cdcbeea9a8b527dc06df6ba42 to your computer and use it in GitHub Desktop.
Save MikeShi42/6dff9c1cdcbeea9a8b527dc06df6ba42 to your computer and use it in GitHub Desktop.
from flask import Flask
import json
app = Flask(__name__, static_folder='.')
@app.route("/data")
def data():
return json.dumps(observations)
@app.route('/')
def root():
return app.send_static_file('./index.html')
app.run(host='0.0.0.0', port='3000')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment