chore: adjust file path

This commit is contained in:
2024-10-01 23:38:47 +08:00
parent 253e2c1508
commit 77d03279fc
4 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -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)