In client\app\services\message.service.ts, we are going to update addMessage() as follows:
// SNIPP SNIPPaddMessage(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.