提交 3fe5dd00 编写于 作者: L linkedin_21843693

Auto Commit

上级 b48da9a5
......@@ -52,5 +52,13 @@ def login():
else:
return jsonify({'status': 'fail', 'message': '登录失败'}, 400)
#首页
@app.route("/", methods=["GET"])
def home():
print(request.host)
host = request.host
host = host.replace('5000', '8501')
return f'<a href="http://{host}"> 打开应用 </a>'
if __name__ == '__main__':
app.run() # 启动服务器
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册