File size: 389 Bytes
3ee27e3 86c264a 3ee27e3 86c264a 3ee27e3 86c264a c46b847 86c264a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from flask import Flask, send_from_directory
import os
app = Flask(__name__, static_folder="dist", static_url_path="")
@app.route("/")
def index():
return send_from_directory(app.static_folder, "index.html")
@app.route("/<path:path>")
def static_files(path):
return send_from_directory(app.static_folder, path)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=7860)
|