diff --git a/app.py b/app.py index 1b36d0a..a4fbc4b 100755 --- a/app.py +++ b/app.py @@ -155,6 +155,9 @@ def send_resource(path): def generaltxt_help(): return render_template('generaltxt_help.html', title="使用說明") +@app.route('/data/') +def get_data(path): + return send_from_directory('data', path) if __name__ == "__main__": app.run(debug=True, port=4980, host='0.0.0.0', threaded=False)