1 import { logger } from '../../../helpers'
2 import { checkErrors } from '../utils'
4 function signatureValidator (req, res, next) {
5 req.checkBody('signature.host', 'Should have a signature host').isURL()
6 req.checkBody('signature.signature', 'Should have a signature').notEmpty()
8 logger.debug('Checking signature parameters', { parameters: { signature: req.body.signature } })
10 checkErrors(req, res, next)
13 // ---------------------------------------------------------------------------