Spaces:
Sleeping
Sleeping
Update routers/empleados.py
Browse files- routers/empleados.py +2 -2
routers/empleados.py
CHANGED
@@ -29,7 +29,7 @@ def get_empleados():
|
|
29 |
return []
|
30 |
|
31 |
|
32 |
-
|
33 |
def post_empleado(empleado: Empleados):
|
34 |
try:
|
35 |
with DatabaseConnection().get_connection() as conn:
|
@@ -50,7 +50,7 @@ def post_empleado(empleado: Empleados):
|
|
50 |
return []
|
51 |
|
52 |
|
53 |
-
|
54 |
def put_empleado(empleado: Empleados):
|
55 |
try:
|
56 |
with DatabaseConnection().get_connection() as conn:
|
|
|
29 |
return []
|
30 |
|
31 |
|
32 |
+
@router.post("/")
|
33 |
def post_empleado(empleado: Empleados):
|
34 |
try:
|
35 |
with DatabaseConnection().get_connection() as conn:
|
|
|
50 |
return []
|
51 |
|
52 |
|
53 |
+
@router.put("/")
|
54 |
def put_empleado(empleado: Empleados):
|
55 |
try:
|
56 |
with DatabaseConnection().get_connection() as conn:
|