chat.js 245 B

12345678910
  1. const Joi = require('joi');
  2. const validate = require('./validate');
  3. const schemaStartChat = Joi.object({
  4. id: Joi.string().required(),
  5. });
  6. module.exports.startChat = (req, _res, next) => {
  7. return validate(schemaStartChat, req.body, next);
  8. };