20 lines
424 B
Python
20 lines
424 B
Python
'''
|
|
********************************************
|
|
* @Date: 2024 10 22
|
|
* @Description: flask app入口,在开发模式运行,在生产环境应该运行start.py
|
|
********************************************
|
|
'''
|
|
|
|
from flask import Flask
|
|
|
|
app = Flask(__name__, static_folder="./web/dist/", static_url_path="")
|
|
|
|
|
|
@app.route("/")
|
|
def main():
|
|
return app.send_static_file("index.html")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run()
|