diff --git a/src/app/services/todo.service.ts b/src/app/services/todo.service.ts index 508183e..0cf7e20 100644 --- a/src/app/services/todo.service.ts +++ b/src/app/services/todo.service.ts @@ -47,7 +47,7 @@ export class TodoService { addTodoByTeamId(newtodoList: TodoList): Observable { const teamId = this.tokenService.getCurrentTeamId(); console.log(newtodoList); - return this.http.post(`${this.apiUrl}/ad/todolistd/${teamId}`, newtodoList); + return this.http.post(`${this.apiUrl}/todolist/add/${teamId}`, newtodoList); } //suprime une todoList en fonction de son id