Stock/app.py

20 lines
370 B
Python
Raw Normal View History

2022-05-25 03:16:39 +09:00
from distutils.log import debug
import flask
app = flask.Flask(__name__)
2022-05-25 03:31:45 +09:00
@app.route("/dist/<m>")
def distServe(m:str):
2022-05-25 03:16:39 +09:00
return flask.send_from_directory("dist", m)
2022-05-25 03:31:45 +09:00
@app.route("/")
def index():
import pages
return flask.render_template("index.html", pages = pages.GenLists)
2022-05-25 03:16:39 +09:00
if __name__ == '__main__':
app.run(host='0.0.0.0', port=12001, debug=True)