aa
This commit is contained in:
@@ -163,6 +163,14 @@ def ruilaizi():
|
||||
'msg': '找不到指定版本的安装包'
|
||||
})
|
||||
|
||||
# 下载文件服务
|
||||
@app.route("/member/download/<filename>", methods=['GET'])
|
||||
def download(filename):
|
||||
if request.method == "GET":
|
||||
if os.path.isfile(os.path.join('static', filename)):
|
||||
return send_from_directory('static', filename, as_attachment=True)
|
||||
abort(404)
|
||||
|
||||
@route_api.route("/member/ruilaizitest",methods = [ "GET","POST" ])
|
||||
def ruilaizitest():
|
||||
resp = {'code': 200, 'msg': 'r操作成功~', 'data': {}}
|
||||
|
||||
Reference in New Issue
Block a user