fdsfsd
This commit is contained in:
parent
629b00eb0d
commit
0dcfc4d943
12 changed files with 93 additions and 93 deletions
|
@ -17,7 +17,7 @@ def authorize_prompt(v):
|
|||
|
||||
|
||||
@app.post("/authorize")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def authorize(v):
|
||||
|
@ -40,7 +40,7 @@ def authorize(v):
|
|||
|
||||
|
||||
@app.post("/api_keys")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@is_not_banned
|
||||
def request_api_keys(v):
|
||||
|
||||
|
@ -61,7 +61,7 @@ def request_api_keys(v):
|
|||
|
||||
|
||||
@app.post("/delete_app/<aid>")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def delete_oauth_app(v, aid):
|
||||
|
@ -80,7 +80,7 @@ def delete_oauth_app(v, aid):
|
|||
|
||||
|
||||
@app.post("/edit_app/<aid>")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@is_not_banned
|
||||
@validate_formkey
|
||||
def edit_oauth_app(v, aid):
|
||||
|
@ -100,7 +100,7 @@ def edit_oauth_app(v, aid):
|
|||
|
||||
|
||||
@app.post("/admin/app/approve/<aid>")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@admin_level_required(3)
|
||||
@validate_formkey
|
||||
def admin_app_approve(v, aid):
|
||||
|
@ -128,7 +128,7 @@ def admin_app_approve(v, aid):
|
|||
|
||||
|
||||
@app.post("/admin/app/revoke/<aid>")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@admin_level_required(3)
|
||||
@validate_formkey
|
||||
def admin_app_revoke(v, aid):
|
||||
|
@ -147,7 +147,7 @@ def admin_app_revoke(v, aid):
|
|||
|
||||
|
||||
@app.post("/admin/app/reject/<aid>")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@admin_level_required(3)
|
||||
@validate_formkey
|
||||
def admin_app_reject(v, aid):
|
||||
|
@ -230,7 +230,7 @@ def admin_apps_list(v):
|
|||
|
||||
|
||||
@app.post("/oauth/reroll/<aid>")
|
||||
@limiter.limit("1/0.5second")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
def reroll_oauth_tokens(aid, v):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue