Spaces:
Sleeping
Sleeping
Update routers/productos.py
Browse files- routers/productos.py +1 -1
routers/productos.py
CHANGED
@@ -31,7 +31,7 @@ def get_productos():
|
|
31 |
return []
|
32 |
|
33 |
|
34 |
-
|
35 |
def post_producto(producto: Productos):
|
36 |
try:
|
37 |
with DatabaseConnection().get_connection() as conn:
|
|
|
31 |
return []
|
32 |
|
33 |
|
34 |
+
@router.post("/")
|
35 |
def post_producto(producto: Productos):
|
36 |
try:
|
37 |
with DatabaseConnection().get_connection() as conn:
|