通过路由参数设置url的请求方式
@app.route("/",methods=[“POST”,“GET”])
@app.route("/index")
def index("/")
return “index”
通过methods设置客户端的请求方式
通过添加路由app.route("/index")多添加一种客户端的访问方式
通过路由参数设置url的请求方式
@app.route("/",methods=[“POST”,“GET”])
@app.route("/index")
def index("/")
return “index”
通过methods设置客户端的请求方式
通过添加路由app.route("/index")多添加一种客户端的访问方式