From 630a633bfb5289006be8e89d4847a17ea1c1f68f Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Tue, 23 Aug 2022 00:09:55 -0600 Subject: [PATCH] =?UTF-8?q?agregar=20metodo=20de=20eliminaci=C3=B3n=20de?= =?UTF-8?q?=20comunicado=20en=20servicio=20de=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-gateway/src/app.service.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api-gateway/src/app.service.ts b/api-gateway/src/app.service.ts index 9307433c..4b12b805 100644 --- a/api-gateway/src/app.service.ts +++ b/api-gateway/src/app.service.ts @@ -548,6 +548,15 @@ export class AppService { .pipe(map((message: string) => ({ message }))); } + //DELETE + deletePost(paramPostId: string) { + const pattern = { cmd: 'removePost' }; + const payload = { id: paramPostId }; + return this.clientPostApp + .send(pattern, payload) + .pipe(map((message: string) => ({ message }))); + } + // ====================== COMMNENT POSTS =============================== //Comment parameter from API