diff --git a/lib/BootBot.js b/lib/BootBot.js index 12b0698..5df40f8 100644 --- a/lib/BootBot.js +++ b/lib/BootBot.js @@ -33,7 +33,7 @@ class BootBot extends EventEmitter { this.app = express(); this.webhook = options.webhook || '/webhook'; this.webhook = this.webhook.charAt(0) !== '/' ? `/${this.webhook}` : this.webhook; - this.app.use(bodyParser.json({ verify: this._verifyRequestSignature.bind(this) })); + this.app.use(this.webhook, bodyParser.json({ verify: this._verifyRequestSignature.bind(this) })); this._hearMap = []; this._conversations = []; }