Created
December 16, 2019 13:30
-
-
Save anoobbava/10ff8419d9380c97b8b7194f11885e76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async updateTodo (todo) { | |
const updatedTodoHash = { is_completed: todo.is_completed } | |
const response = await axios.put('todos/' + todo.id, updatedTodoHash) | |
return response.data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment