Spaces:
Sleeping
Sleeping
JairoDanielMT
commited on
Commit
•
325fa40
1
Parent(s):
5811bb1
Update routers/gastos_imprevistos.py
Browse files
routers/gastos_imprevistos.py
CHANGED
@@ -28,7 +28,7 @@ def get_gastos_imprevistos():
|
|
28 |
return []
|
29 |
|
30 |
|
31 |
-
|
32 |
def post_gasto_imprevisto(gasto_imprevisto: GastosImprevistos):
|
33 |
try:
|
34 |
with DatabaseConnection().get_connection() as conn:
|
@@ -48,7 +48,7 @@ def post_gasto_imprevisto(gasto_imprevisto: GastosImprevistos):
|
|
48 |
return []
|
49 |
|
50 |
|
51 |
-
|
52 |
def put_gasto_imprevisto(gasto_imprevisto: GastosImprevistos):
|
53 |
try:
|
54 |
with DatabaseConnection().get_connection() as conn:
|
|
|
28 |
return []
|
29 |
|
30 |
|
31 |
+
@router.post("/")
|
32 |
def post_gasto_imprevisto(gasto_imprevisto: GastosImprevistos):
|
33 |
try:
|
34 |
with DatabaseConnection().get_connection() as conn:
|
|
|
48 |
return []
|
49 |
|
50 |
|
51 |
+
@router.put("/")
|
52 |
def put_gasto_imprevisto(gasto_imprevisto: GastosImprevistos):
|
53 |
try:
|
54 |
with DatabaseConnection().get_connection() as conn:
|