From 7ebba40014d13c33fcaa53b80e4af1e6e704289c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Tue, 23 Jun 2020 16:38:28 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20fonction=20pour=20r=C3=A9cup?= =?UTF-8?q?=C3=A9rer=20la=20liste=20des=20formations=20d'un=20collaborateu?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/service/service-formation.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/service/service-formation.ts b/src/app/service/service-formation.ts index b37a020..e364464 100644 --- a/src/app/service/service-formation.ts +++ b/src/app/service/service-formation.ts @@ -17,6 +17,12 @@ export class ServiceFormation { return this.http.get(urlsFormation.urlFormation); } + + listeFormationsCollaborateur(id) : Observable { + let params = { idCollab : id }; + return this.http.get(urlsFormation.urlFormation, { params }); + } + nouvelleFormation(formation) : Observable { return this.http.post(urlsFormation.newFormation, formation); }