Skip to content

Update and rename chatMessage.js to optimized chatMessage.js#2

Open
KidusB9 wants to merge 1 commit intoearthcomfy:mainfrom
KidusB9:main
Open

Update and rename chatMessage.js to optimized chatMessage.js#2
KidusB9 wants to merge 1 commit intoearthcomfy:mainfrom
KidusB9:main

Conversation

@KidusB9
Copy link
Copy Markdown

@KidusB9 KidusB9 commented Dec 28, 2022

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant