(logger, messageValidatorService)
| 5 | const stream = require('stream'); |
| 6 | |
| 7 | function Middleware(logger, messageValidatorService) { |
| 8 | this._logger = logger; |
| 9 | this._stream = this._createStream(); |
| 10 | this._buffer = null; |
| 11 | |
| 12 | this._app = express(); |
| 13 | this._app.use(bodyParser.text({ type: "*/*" })); |
| 14 | |
| 15 | this._validateMessageSignature(messageValidatorService); |
| 16 | this._configureEndpoints(); |
| 17 | } |
| 18 | |
| 19 | Middleware.prototype.getIncoming = function() { |
| 20 | return this._app; |
nothing calls this directly
no outgoing calls
no test coverage detected