Updating the POST API URL

In clientappservicesmessage.service.ts, we are going to update addMessage() as follows:

// SNIPP SNIPP
addMessage(message: Message): Observable < Message > {
return this.http.post < Message > ('/api/post-message', message);
}
// SNIPP SNIPP

We have updated the end point to which we have posted the message.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.197.136