Spaces:
Sleeping
Sleeping
Update routers/maquinas.py
Browse files- routers/maquinas.py +2 -2
routers/maquinas.py
CHANGED
@@ -28,7 +28,7 @@ def get_maquinas():
|
|
28 |
return []
|
29 |
|
30 |
|
31 |
-
|
32 |
def post_maquina(maquina: Maquinas):
|
33 |
try:
|
34 |
with DatabaseConnection().get_connection() as conn:
|
@@ -48,7 +48,7 @@ def post_maquina(maquina: Maquinas):
|
|
48 |
return []
|
49 |
|
50 |
|
51 |
-
|
52 |
def put_maquina(maquina: Maquinas):
|
53 |
try:
|
54 |
with DatabaseConnection().get_connection() as conn:
|
|
|
28 |
return []
|
29 |
|
30 |
|
31 |
+
@router.post("/")
|
32 |
def post_maquina(maquina: Maquinas):
|
33 |
try:
|
34 |
with DatabaseConnection().get_connection() as conn:
|
|
|
48 |
return []
|
49 |
|
50 |
|
51 |
+
@router.put("/")
|
52 |
def put_maquina(maquina: Maquinas):
|
53 |
try:
|
54 |
with DatabaseConnection().get_connection() as conn:
|