agregar metodo de eliminación de comunicado en servicio de API
This commit is contained in:
parent
1fd25ee469
commit
630a633bfb
|
@ -548,6 +548,15 @@ export class AppService {
|
||||||
.pipe(map((message: string) => ({ message })));
|
.pipe(map((message: string) => ({ message })));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//DELETE
|
||||||
|
deletePost(paramPostId: string) {
|
||||||
|
const pattern = { cmd: 'removePost' };
|
||||||
|
const payload = { id: paramPostId };
|
||||||
|
return this.clientPostApp
|
||||||
|
.send<string>(pattern, payload)
|
||||||
|
.pipe(map((message: string) => ({ message })));
|
||||||
|
}
|
||||||
|
|
||||||
// ====================== COMMNENT POSTS ===============================
|
// ====================== COMMNENT POSTS ===============================
|
||||||
|
|
||||||
//Comment parameter from API
|
//Comment parameter from API
|
||||||
|
|
Loading…
Reference in New Issue