mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
Initial commit: Flask calorie counter app setup
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.
This commit is contained in:
13
application/admin/routes.py
Normal file
13
application/admin/routes.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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")
|
||||
5
application/admin/templates/food_items.html
Normal file
5
application/admin/templates/food_items.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
Hallo
|
||||
{% endblock%}
|
||||
Reference in New Issue
Block a user