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