Skip to content

Commit

Permalink
[Update📢] category service added
Browse files Browse the repository at this point in the history
  • Loading branch information
[esekyi] committed Aug 27, 2024
1 parent 4c9297f commit 2d4e27c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/services/category_sevice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from app import db
from app.models.category import Category


def get_all_categories():
categories = Category.query.all()
return categories

0 comments on commit 2d4e27c

Please sign in to comment.