diff --git a/routes.py b/routes.py index 4bccc8c..c4537a4 100644 --- a/routes.py +++ b/routes.py @@ -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")) \ No newline at end of file + return redirect(url_for("main.login")) + +@bp.route("/admin/add") +@admin_required +def admin_add(): + return render_template("admin_add.html") \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index d338d72..9c01534 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -7,6 +7,7 @@