feat: add admin_add
This commit is contained in:
1 parent
9b3428d0ab
commit
36196a736a
3 files changed
+14
-1
No files matched your search
@@ -270,4 +270,9 @@ def debug_reset():
|
||||
if not current_app.debug:
|
||||
abort(404) # im normalen Betrieb existiert die Route praktisch nicht
|
||||
session.clear()
|
||||
return redirect(url_for("main.login"))
|
||||
return redirect(url_for("main.login"))
|
||||
|
||||
@bp.route("/admin/add")
|
||||
@admin_required
|
||||
def admin_add():
|
||||
return render_template("admin_add.html")
|
||||
Reference in new issue
Block a user