Updating the POST API URL

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.

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.