forcI-taxonomy / controller.py
rabuahmad's picture
Upload 3 files
28c3a11
raw
history blame
No virus
327 Bytes
from flask import Flask, render_template
from flask import send_file
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/taxonomy.json")
def loadFile():
path = "taxonomy.json"
return send_file(path, as_attachment=True)
if __name__ == "__main__":
app.run()