Routes

The next thing we are going to look at is the routes. Open server\routes.ts file and we should see three imports, which define the three API services that we have. defineUserRoutes imports all the routes for User API, defineThreadRoutes imports all the routes for Thread API, and defineMessageRoutes imports all the routes for Message API. Navigate to server\routes\user.tsserver\routes\thread.ts and server\routes\message.ts to view the routes listed.

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.