Moved some products to different categories to test views

This commit is contained in:
2024-01-07 13:47:09 +00:00
parent 20f28739a2
commit e18412fea4
3 changed files with 10 additions and 7 deletions

View File

@ -6,6 +6,8 @@ from controllers.database.category import CategoryController
blueprint = Blueprint("products", __name__, url_prefix="/products")
# Global context to enable the categories to be accessed
# from any view
@blueprint.context_processor
def category_list():
database = CategoryController()