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