dsffds
This commit is contained in:
parent
be08a12d34
commit
629b00eb0d
12 changed files with 93 additions and 93 deletions
|
@ -5,7 +5,7 @@ from files.__main__ import app, limiter
|
|||
from os import path
|
||||
|
||||
@app.post("/flag/post/<pid>")
|
||||
@limiter.limit("1/second")
|
||||
@limiter.limit("1/0.5second")
|
||||
@auth_desired
|
||||
def api_flag_post(pid, v):
|
||||
|
||||
|
@ -37,7 +37,7 @@ def api_flag_post(pid, v):
|
|||
|
||||
|
||||
@app.post("/flag/comment/<cid>")
|
||||
@limiter.limit("1/second")
|
||||
@limiter.limit("1/0.5second")
|
||||
@auth_desired
|
||||
def api_flag_comment(cid, v):
|
||||
|
||||
|
@ -68,7 +68,7 @@ def api_flag_comment(cid, v):
|
|||
|
||||
|
||||
@app.post('/del_report/<report_fn>')
|
||||
@limiter.limit("1/second")
|
||||
@limiter.limit("1/0.5second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def remove_report(report_fn, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue