File Name : messages.js File Path : /server/routes/messages.js This route is used to handle user's chat (messages) related queries. For example: fetching favourite users and messages, fetching specific user messages, loading more messages etc
{success: true,data: [{text,image,location,createdAt,senderId,receiverId,}. . .. . .]​}​or{success: true,message: 'No favourite users',data: null​}
{success: true,data: {_id,profileUrl,fname,lname,messages: [{text,image,location,createdAt,senderId,receiverId,}. . .. . .]}}
{messages : [{text,image,location,createdAt,senderId,receiverId,}. . .. . .]}