Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import corgis.earthquakes
- from flask import Flask, jsonify
- app = Flask(__name__)
- @app.route("/get_earthquakes/<time>/")
- def get_earthquakes(time):
- return jsonify(earthquakes.get(time).to_dict())
- if __name__ == "__main__":
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment