rate limit thing

This commit is contained in:
maaa 2023-07-10 02:07:51 +02:00
parent 0ce3b90c68
commit 64c4cb25e1
1 changed files with 1 additions and 1 deletions

2
main
View File

@ -470,7 +470,7 @@ def apicomments(post_id):
return comments
@app.route("/cdn/<filename>", methods=("GET", "POST"))
@limiter.limit("15/second", override_defaults=False)
@limiter.exempt
def cdn(filename):
if os.path.exists(os.path.join(UPLOAD_FOLDER, filename)):
return send_from_directory(UPLOAD_FOLDER, filename)