From 060c29f91a89b3bbd9a3cd4378d11e4312c9bfe0 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 15:59:11 +0000 Subject: [PATCH] Add POST endpoint for food --- endpoints/food.post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/food.post.py b/endpoints/food.post.py index 0be2e30..63d6e18 100644 --- a/endpoints/food.post.py +++ b/endpoints/food.post.py @@ -1,6 +1,6 @@ # Entity: Food -from fastapi import APIRouter, Depends, status +from fastapi import APIRouter, Depends, HTTPException, status from sqlalchemy.orm import Session from typing import List from core.database import get_db