update tache

This commit is contained in:
HarmandI 2022-02-17 09:44:18 +01:00
parent a9970a50eb
commit 82321df395
4 changed files with 58 additions and 11598 deletions

View file

@ -21,11 +21,18 @@ export class TodoService {
}
deleteTacheById(idTache: any): Observable<any> {
return this.http.delete(`${this.apiUrl}/taches/delete/${idTache}`,{responseType:'text'});
return this.http.delete(`${this.apiUrl}/taches/delete/${idTache}`, {
responseType: 'text',
});
}
addTache(newtache: Tache,idTodoList:number): Observable<any> {
console.log(newtache +'gkggg');
addTache(newtache: Tache, idTodoList: number): Observable<any> {
// console.log(newtache);
return this.http.post(`${this.apiUrl}/taches/add/${idTodoList}`, newtache);
}
updateTache(tache: Tache): Observable<any> {
console.log(tache);
return this.http.put(`${this.apiUrl}/taches/update/1`, tache);
}
}