JairoDanielMT commited on
Commit
27e949f
1 Parent(s): 33223a2

Update routers/maquinas.py

Browse files
Files changed (1) hide show
  1. routers/maquinas.py +2 -2
routers/maquinas.py CHANGED
@@ -28,7 +28,7 @@ def get_maquinas():
28
  return []
29
 
30
 
31
- # @router.post("/")
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
- # @router.put("/")
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: