Add POST endpoint for products
This commit is contained in:
parent
e665e3b8b2
commit
441c8580ef
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user