text: const bodyParser = require('body-parser');
  const validator = require('swagger-endpoint-validator');
  
  module.exports = () => {
  	const start = async ({ manifest = {}, app, config }) => {
  		app.use(bodyParser.urlencoded({ extended: true }));
  		app.use(bodyParser.json());
  
  		await validator.init(app, config.swaggerValidator);
  
  		app.get('/__/manifest', (req, res) => res.json(manifest));
  
  		return Promise.resolve();
  	};
  
  	return { start };
  };