sfdfsd
This commit is contained in:
parent
d7dc04fa51
commit
567f8592df
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ def admin_vote_info_get(v):
|
||||||
|
|
||||||
|
|
||||||
@app.post("/vote/post/<post_id>/<new>")
|
@app.post("/vote/post/<post_id>/<new>")
|
||||||
@limiter.limit("5/second;60/minute;200/hour")
|
@limiter.limit("5/second;60/minute;600/hour")
|
||||||
@auth_required
|
@auth_required
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def api_vote_post(post_id, new, v):
|
def api_vote_post(post_id, new, v):
|
||||||
|
@ -126,7 +126,7 @@ def api_vote_post(post_id, new, v):
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
@app.post("/vote/comment/<comment_id>/<new>")
|
@app.post("/vote/comment/<comment_id>/<new>")
|
||||||
@limiter.limit("5/second;60/minute;200/hour")
|
@limiter.limit("5/second;60/minute;600/hour")
|
||||||
@auth_required
|
@auth_required
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def api_vote_comment(comment_id, new, v):
|
def api_vote_comment(comment_id, new, v):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue