diff --git a/files/routes/admin.py b/files/routes/admin.py index 07445a054..0b7289549 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -701,8 +701,8 @@ def alt_votes_get(v): data=data ) -@app.get("/admin/alts/") -@app.get("/@/alts/") +@app.get("/admin/alts") +@app.get("/@/alts") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @admin_level_required(PERMS['USER_LINK']) @@ -710,7 +710,7 @@ def admin_view_alts(v, username=None): u = get_user(username or request.values.get('username'), graceful=True) return render_template('admin/alts.html', v=v, u=u, alts=u.alts if u else None) -@app.post('/@/alts/') +@app.post('/@/alts') @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @@ -1654,7 +1654,7 @@ def approve_comment(c_id, v): return {"message": "Comment approved!"} -@app.get("/admin/banned_domains/") +@app.get("/admin/banned_domains") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @admin_level_required(PERMS['DOMAINS_BAN']) @@ -2124,7 +2124,7 @@ def change_under_siege_post(v): return {"message": "Thresholds changed successfully!"} if FEATURES['IP_LOGGING']: - @app.get("/@/ips/") + @app.get("/@/ips") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @admin_level_required(PERMS['VIEW_IPS']) diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index cad5f0783..4e1a98655 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -91,7 +91,7 @@
  • Banned Domains
  • {% endif %} {% if v.admin_level >= PERMS['USER_LINK'] %} -
  • View and Link Alts
  • +
  • View and Link Alts
  • {% endif %} {% if v.admin_level >= PERMS['VIEW_ALT_VOTES'] %}
  • Alt Vote Analysis