MCPcopy Create free account
hub / github.com/RootbeerComputer/backend-GPT / createTodo

Function createTodo

frontend/src/APIHelper.js:4–7  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected