Ghost/core/server/data/validation/index.js
Hannah Wolfe c37de311ea
Split validation index into separate files
- The data/validation module is made up of several loosely related things with lots of dependencies
- Separating out the various components makes it possible to see what's what, and importantly what has complex dependencies
- validator + validate probably go togetheri in an external module, the other two files should probably have their own homes in related areas of ghost e.g. schema -> data/schema/validate.js
2021-06-14 18:18:28 +01:00

9 lines
248 B
JavaScript

module.exports = {
validate: require('./validate'),
validator: require('./validator'),
// These two things are dependent on validator, not related
validatePassword: require('./password'),
validateSchema: require('./schema')
};