add run app dev model
This commit is contained in:
parent
8fde675d75
commit
5ea638b0db
9
api.py
9
api.py
@ -41,9 +41,6 @@ def create_app():
|
||||
|
||||
app = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
|
||||
# 在所有请求加上跨域允许
|
||||
# @app.after_request
|
||||
# def af_request(resp):
|
||||
@ -129,4 +126,8 @@ def excelReset():
|
||||
@app.route('/excel/getaddr', methods=["GET"])
|
||||
def excelGet():
|
||||
res = manageExcelGet(request)
|
||||
return res
|
||||
return res
|
||||
|
||||
# 本地运行启动
|
||||
if __name__ == '__main__':
|
||||
app.run(host="0.0.0.0", debug=True, port="80")
|
Loading…
x
Reference in New Issue
Block a user