mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-29 10:50:00 +00:00
Add base Flask application with user authentication, SQLAlchemy models for users, units, and food items, admin blueprint, and basic templates. Includes database migration setup, login form, and seed script for initial user creation.
14 lines
269 B
Python
14 lines
269 B
Python
from flask import Blueprint, render_template
|
|
|
|
admin_bp = Blueprint(
|
|
"admin",
|
|
__name__,
|
|
url_prefix="/admin",
|
|
template_folder="templates",
|
|
)
|
|
|
|
|
|
@admin_bp.route("/food_items", methods=["GET"])
|
|
def food_items():
|
|
return render_template("food_items.html")
|