mirror of
https://github.com/ershisan99/todolist_next.git
synced 2026-01-30 21:02:05 +00:00
add create task functionality, refactor, styling
This commit is contained in:
@@ -59,3 +59,7 @@ export const createTodolist = (title: string) => {
|
||||
export const deleteTodolist = (todolistId: string) => {
|
||||
return instance.delete(`todo-lists/${todolistId}`);
|
||||
};
|
||||
|
||||
export const createTask = (todolistId: string, title: string) => {
|
||||
return instance.post(`todo-lists/${todolistId}/tasks`, { title });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user