Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
api/middleware/index.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const authRequired = require('./authRequired');
const avatarValidation = require('./avatarValidation');
const childValidation = require('./childValidation');
const dateValidation = require('./dateValidation');
const dsAuthMiddleware = require('./dsAuthMiddleware');
const fileUpload = require('./fileUpload');
const gradeLevelValidation = require('./gradeLevelValidation');
const parentValidation = require('./parentValidation');
const storyValidation = require('./storyValidation');
const emojiValidation = require('./emojiValidation');
const achieveValidation = require('./achieveValidation');


module.exports = {
  authRequired,
  dsAuthMiddleware,
  fileUpload,
  ...avatarValidation,
  ...childValidation,
  ...dateValidation,
  ...gradeLevelValidation,
  ...parentValidation,
  ...storyValidation,
  emojiValidation,
  ...achieveValidation,
};