File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
.learn/exercises/08-delete-todo Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,17 @@ La principal diferencia es que `DELETE /todos/<position:int>` recibirá la posic
77``` python
88@app.route (' /todos/<int:position>' , methods = [' DELETE' ])
99def delete_todo (position ):
10- print (" This is the position to delete: " ,position)
10+ print (" This is the position to delete: " , position)
1111 return ' something'
1212```
1313
1414Cuando usas los símbolos ` < ` y ` > ` , Flask retornará lo que sea que haya especificado el cliente en esa parte de la URL como variable. por ejemplo:
1515
1616``` txt
17- La solicitud DELETE /todos/1 llamará a la función ` delete_todo` con la variable position == 1
18- La solicitud DELETE /todos/323 llamará a la función ` delete_todo` con la variable position == 323
17+ La solicitud DELETE /todos/1 llamará a la función ' delete_todo' con la variable ' position == 1'
18+ La solicitud DELETE /todos/323 llamará a la función ' delete_todo' con la variable ' position == 323'
1919```
20+
2021## 📝 Instrucciones:
2122
22231 . Añade este endpoint a tu archivo ` app.py ` .
You can’t perform that action at this time.
0 commit comments