Add POST endpoint for products

This commit is contained in:
Backend IM Bot 2025-03-29 22:41:01 +00:00
parent e665e3b8b2
commit 441c8580ef

View File

@ -13,5 +13,4 @@ async def add_product(
db: Session = Depends(get_db) db: Session = Depends(get_db)
): ):
"""Create a new product""" """Create a new product"""
new_product = create_product(db, product) return create_product(db=db, product=product)
return new_product