From c2c884e4e8cf37c61c27484bb93e5a0cb94a9c76 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 16:00:58 +0000 Subject: [PATCH] Add GET endpoint for food --- endpoints/food.get.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/endpoints/food.get.py b/endpoints/food.get.py index 352798e..c814b05 100644 --- a/endpoints/food.get.py +++ b/endpoints/food.get.py @@ -1,7 +1,10 @@ # Entity: Food -from fastapi import APIRouter, Depends +from fastapi import APIRouter, Depends, status +from sqlalchemy.orm import Session from typing import List +from core.database import get_db +from models.food import Food from schemas.food import FoodSchema from helpers.food_helpers import get_all_foods