Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Add public method to get express instance #13

Closed
wants to merge 2 commits into from
Closed

Conversation

killix
Copy link
Collaborator

@killix killix commented May 10, 2017

Allow accessing to express instance to add middlewares if necessary.
This put compatible @broid/kik wich has an issue with body-parser (https://github.com/kikinteractive/kik-node/issues/8)

const R = require('ramda');
const BroidKik = require('@broid/slack');
const Bot = require("@broid/kit");
const bodyParser = require("body-parser");

const bot = new Bot({
	logLevel: "info",
	http: {
		host: "0.0.0.0",
		port: 8080,
	}
});

bot.getExpress().use(bodyParser.json());
bot.getExpress().use(bodyParser.urlencoded({ extended: false }));

@killix killix requested a review from dustinblackman May 10, 2017 18:07
@dustinblackman
Copy link
Contributor

Closing in favour of #15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants