From 441c8580efd0c73febbe963d43add6caabe615ea Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sat, 29 Mar 2025 22:41:01 +0000 Subject: [PATCH] Add POST endpoint for products --- endpoints/products.post.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/endpoints/products.post.py b/endpoints/products.post.py index c52149b..6088469 100644 --- a/endpoints/products.post.py +++ b/endpoints/products.post.py @@ -13,5 +13,4 @@ async def add_product( db: Session = Depends(get_db) ): """Create a new product""" - new_product = create_product(db, product) - return new_product \ No newline at end of file + return create_product(db=db, product=product) \ No newline at end of file