From 901637bb87f5eb0518fb7ca69d98b53ed918339e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Mar 2018 13:57:29 +0100 Subject: Add ability to change the homepage --- server/middlewares/validators/config.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/middlewares/validators/config.ts') 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' import { areValidationErrors } from './utils' const customConfigUpdateValidator = [ + body('instance.name').exists().withMessage('Should have a valid instance name'), + body('instance.description').exists().withMessage('Should have a valid instance description'), + body('instance.terms').exists().withMessage('Should have a valid instance terms'), + body('instance.defaultClientRoute').exists().withMessage('Should have a valid instance default client route'), + body('instance.customizations.css').exists().withMessage('Should have a valid instance CSS customization'), + body('instance.customizations.javascript').exists().withMessage('Should have a valid instance JavaScript customization'), body('cache.previews.size').isInt().withMessage('Should have a valid previews size'), body('signup.enabled').isBoolean().withMessage('Should have a valid signup enabled boolean'), body('signup.limit').isInt().withMessage('Should have a valid signup limit'), -- cgit v1.2.3