diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/config.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/middlewares/validators/config.ts b/server/middlewares/validators/config.ts index 800aaf107..ee6f6efa4 100644 --- a/server/middlewares/validators/config.ts +++ b/server/middlewares/validators/config.ts | |||
@@ -5,6 +5,12 @@ import { logger } from '../../helpers/logger' | |||
5 | import { areValidationErrors } from './utils' | 5 | import { areValidationErrors } from './utils' |
6 | 6 | ||
7 | const customConfigUpdateValidator = [ | 7 | const customConfigUpdateValidator = [ |
8 | body('instance.name').exists().withMessage('Should have a valid instance name'), | ||
9 | body('instance.description').exists().withMessage('Should have a valid instance description'), | ||
10 | body('instance.terms').exists().withMessage('Should have a valid instance terms'), | ||
11 | body('instance.defaultClientRoute').exists().withMessage('Should have a valid instance default client route'), | ||
12 | body('instance.customizations.css').exists().withMessage('Should have a valid instance CSS customization'), | ||
13 | body('instance.customizations.javascript').exists().withMessage('Should have a valid instance JavaScript customization'), | ||
8 | body('cache.previews.size').isInt().withMessage('Should have a valid previews size'), | 14 | body('cache.previews.size').isInt().withMessage('Should have a valid previews size'), |
9 | body('signup.enabled').isBoolean().withMessage('Should have a valid signup enabled boolean'), | 15 | body('signup.enabled').isBoolean().withMessage('Should have a valid signup enabled boolean'), |
10 | body('signup.limit').isInt().withMessage('Should have a valid signup limit'), | 16 | body('signup.limit').isInt().withMessage('Should have a valid signup limit'), |