JairoDanielMT commited on
Commit
33223a2
·
verified ·
1 Parent(s): 325fa40

Update routers/insumos.py

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