diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-01 13:57:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-01 13:57:29 +0100 |
commit | 901637bb87f5eb0518fb7ca69d98b53ed918339e (patch) | |
tree | a8e8943fef7a109ba269d33029174cbdf4dde6d2 /server/middlewares/validators | |
parent | a73c582e5b6f5c52427b38aaf55b3afbead24053 (diff) | |
download | PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.tar.gz PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.tar.zst PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.zip |
Add ability to change the homepage
Diffstat (limited to 'server/middlewares/validators')
-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'), |