summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-02-23 21:02:01 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-02-23 21:02:01 +0800
commita824a38ecb7c71f6f26031f83fd8b8353281c5ed (patch)
tree4e9a472853b53100e3d8a848b7831e89ab6f9bbc
parente7c34253fecd872f13b2d4daf2b5131453322c0b (diff)
Reserve /admin/log for tenant log, /admin/adminlog for admin log
-rw-r--r--jimbrella/admin.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/jimbrella/admin.py b/jimbrella/admin.py
index f0b2f69..19c5a12 100644
--- a/jimbrella/admin.py
+++ b/jimbrella/admin.py
@@ -129,7 +129,12 @@ def umbrellas_edit():
return redirect(url_for("admin.umbrellas"))
-@bp.route("/logs")
-def logs():
+@bp.route("/adminlogs")
+def adminlogs():
logs = logger.read_admin()
return render_template("admin/admin_logs.html", logs=logs)
+
+@bp.route("/logs")
+def logs():
+ logs = logger.read_tenant()
+ return render_template("admin/logs.html", logs=logs)