lets-chat icon indicating copy to clipboard operation
lets-chat copied to clipboard

Update and rename chatMessage.js to optimized chatMessage.js

Open KidusB9 opened this issue 2 years ago • 0 comments

To use the input validation and pagination features, you will need to install the express-validator package and add the relevant middleware to your routes. You can do this by adding the following lines at the top of your file:

const { check, validationResult } = require("express-validator");

app.post( "/messages", [ check("sender").isString(), check("recipient").isString(), check("content").isString(), check("chat

KidusB9 avatar Dec 28 '22 21:12 KidusB9