|
|
|
@ -6,8 +6,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
const new_task = async (todos, task) => { |
|
|
|
const new_task = async (todos, task) => { |
|
|
|
// zero error handling but fine for now |
|
|
|
// zero error handling but fine for now |
|
|
|
await axios.post("/todo_alpine", {task}); |
|
|
|
return (await axios.post("/todo_alpine", {task})).data; |
|
|
|
return (await axios.get('/todo_alpine')).data; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|