Spaces:
Sleeping
Sleeping
Update routers/detalle_ventas.py
Browse files
routers/detalle_ventas.py
CHANGED
@@ -33,7 +33,7 @@ def get_detalle_ventas():
|
|
33 |
|
34 |
|
35 |
# post/detalle_ventas -> crear un detalle_venta con with connection as conn, manejo de errores
|
36 |
-
|
37 |
def post_detalle_venta(detalle_venta: DetalleVentas):
|
38 |
try:
|
39 |
with DatabaseConnection().get_connection() as conn:
|
|
|
33 |
|
34 |
|
35 |
# post/detalle_ventas -> crear un detalle_venta con with connection as conn, manejo de errores
|
36 |
+
@router.post("/")
|
37 |
def post_detalle_venta(detalle_venta: DetalleVentas):
|
38 |
try:
|
39 |
with DatabaseConnection().get_connection() as conn:
|