change app.py

master
zovjsra 1 year ago
parent 2c3fe7b4d7
commit 03ceb99422

@ -155,6 +155,9 @@ def send_resource(path):
def generaltxt_help():
return render_template('generaltxt_help.html', title="使用說明")
@app.route('/data/<path:path>')
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)

Loading…
Cancel
Save