From 2d4e27c4f03207036513242295788a3f1542b8f6 Mon Sep 17 00:00:00 2001 From: "[esekyi]" <[sskert10@gmail.com]> Date: Tue, 27 Aug 2024 03:47:00 +0000 Subject: [PATCH] =?UTF-8?q?[Update=F0=9F=93=A2]=20category=20service=20add?= =?UTF-8?q?ed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/category_sevice.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/services/category_sevice.py diff --git a/app/services/category_sevice.py b/app/services/category_sevice.py new file mode 100644 index 0000000..121cecf --- /dev/null +++ b/app/services/category_sevice.py @@ -0,0 +1,7 @@ +from app import db +from app.models.category import Category + + +def get_all_categories(): + categories = Category.query.all() + return categories