(task)
| 2 | |
| 3 | const API_URL = "http://localhost:5000/todo_list" |
| 4 | async function createTodo(task) { |
| 5 | const data = await (await axios.get(`${API_URL}/add_todo(${task})`)).data; |
| 6 | return data.message; |
| 7 | } |
| 8 | |
| 9 | async function deleteTodo(title) { |
| 10 | const data = await (await axios.get(`${API_URL}/delete(${title})`)).data; |
nothing calls this directly
no outgoing calls
no test coverage detected