Skip to content

Commit

Permalink
problema con redirecto. Mejor 200 y listo
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 20, 2024
1 parent 6d41db3 commit c5849f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/vehiculos.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def cambiar_estado():

flash('Estado cambiado con exito', 'success')

redirect(url_for('vehiculos.listar_vehiculos'))
return jsonify(vehiculo.serialize()), 200


@vehiculos.route('/vehiculos/estadoXid', methods=['PUT'])
Expand All @@ -127,4 +127,4 @@ def cambiar_estadoXid():
Vehiculo.actualizar()


redirect(url_for('vehiculos.listar_vehiculos'))
return jsonify(vehiculo.serialize()), 200

0 comments on commit c5849f3

Please sign in to comment.