mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Server: reorganize express validators
This commit is contained in:
parent
e62f6ef741
commit
e4c556196d
8 changed files with 100 additions and 52 deletions
15
server/helpers/custom-validators/index.js
Normal file
15
server/helpers/custom-validators/index.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict'
|
||||
|
||||
const miscValidators = require('./misc')
|
||||
const usersValidators = require('./users')
|
||||
const videosValidators = require('./videos')
|
||||
|
||||
const validators = {
|
||||
misc: miscValidators,
|
||||
users: usersValidators,
|
||||
videos: videosValidators
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
module.exports = validators
|
Loading…
Add table
Add a link
Reference in a new issue