File size: 388 Bytes
ab57164
 
19b11cc
 
ab57164
19b11cc
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

from flask import Flask, send_from_directory


app = Flask(__name__, static_folder='dist')

@app.route('/')
def serve_index():
    return send_from_directory(app.static_folder, 'index.html')

@app.route('/<path:path>')
def serve_file(path):
    return send_from_directory(app.static_folder, path)

if __name__ == '__main__':
    app.run(debug=False, port=7860, host="0.0.0.0")