Spaces:
Sleeping
Sleeping
Update routers/insumos.py
Browse files- routers/insumos.py +2 -2
routers/insumos.py
CHANGED
@@ -28,7 +28,7 @@ def get_insumos():
|
|
28 |
return []
|
29 |
|
30 |
|
31 |
-
|
32 |
def post_insumo(insumo: Insumos):
|
33 |
try:
|
34 |
with DatabaseConnection().get_connection() as conn:
|
@@ -49,7 +49,7 @@ def post_insumo(insumo: Insumos):
|
|
49 |
return []
|
50 |
|
51 |
|
52 |
-
|
53 |
def put_insumo(insumo: Insumos):
|
54 |
try:
|
55 |
with DatabaseConnection().get_connection() as conn:
|
|
|
28 |
return []
|
29 |
|
30 |
|
31 |
+
@router.post("/")
|
32 |
def post_insumo(insumo: Insumos):
|
33 |
try:
|
34 |
with DatabaseConnection().get_connection() as conn:
|
|
|
49 |
return []
|
50 |
|
51 |
|
52 |
+
@router.put("/")
|
53 |
def put_insumo(insumo: Insumos):
|
54 |
try:
|
55 |
with DatabaseConnection().get_connection() as conn:
|