Move food item routes to user blueprint

Refactored food item related routes from app.py to application/user/routes.py under the user blueprint. Updated template and JS references to use the blueprint route names, improving code organization and modularity.
This commit is contained in:
2025-06-29 17:52:03 +02:00
parent a6f6cdf346
commit 1b79925b49
4 changed files with 54 additions and 66 deletions

View File

@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
<form method="POST" action="{{ url_for('add_food_item') }}">
<form method="POST" action="{{ url_for('user.add_food_item') }}">
{{ form.hidden_tag() }}
<div class="mb-3">