Snai3i-MarketPlace / backend / src / services / enrollment / enrollment.validator.ts
enrollment.validator.ts
Raw
import { body } from 'express-validator';

export const enrollmentValidators = [
  body('course_id').notEmpty().withMessage('Course id is required'),
  body('teacher_id').notEmpty().withMessage('Teacher id is required'),
  body('school_id').notEmpty().withMessage('School id is required'),
];