index.js 248 B

12345678910
  1. 'use strict';
  2. const bodyParser = require('body-parser');
  3. const certificateParser = require('./certificate-parser');
  4. module.exports = app => {
  5. app.use(bodyParser.text({ type: 'application/xml', limit: '1mb' }));
  6. app.use(certificateParser);
  7. };