chore: adjust file path
This commit is contained in:
@@ -35,10 +35,10 @@ def download_file(filename):
|
||||
abort(404)
|
||||
|
||||
|
||||
@app.route("/exp/<path:filename>", methods=["GET"])
|
||||
@app.route("/public/<path:filename>", methods=["GET"])
|
||||
def exp(filename):
|
||||
try:
|
||||
return send_from_directory("exp", filename, as_attachment=True)
|
||||
return send_from_directory("public", filename, as_attachment=True)
|
||||
except FileNotFoundError:
|
||||
abort(404)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user