Delete all tasks
Tasks deleted
const response = await fetch('/tasks', { method: 'DELETE', headers: {}, }); const data = await response.json();
Return all tasks in an array
Success
const response = await fetch('/tasks', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "name": "text", "tag": "text" } ]