From 236ce22c52683a2289715f684c8a1da21978dbca Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 May 2022 18:14:32 +0200 Subject: [PATCH] fsd --- files/routes/static.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 5a3963672a..dba8526ce5 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -354,6 +354,7 @@ def log(v): return render_template("log.html", v=v, admins=admins, types=types, admin=admin, type=kind, actions=actions, next_exists=next_exists, page=page) @app.get("/log/") +@limiter.limit("1/day") @auth_required def log_item(id, v): @@ -373,9 +374,9 @@ def log_item(id, v): @app.get("/api") -@limiter.limit("1/day") -def api(): - return render_template("api.html") +@auth_required +def api(v): + return render_template("api.html", v=v) @app.get("/contact") @app.get("/press")