Skip to content

Instantly share code, notes, and snippets.

@tjmehta
Last active April 4, 2016 22:25
Show Gist options
  • Save tjmehta/bad8199c1f82ca018be50ad74ee7ad5d to your computer and use it in GitHub Desktop.
Save tjmehta/bad8199c1f82ca018be50ad74ee7ad5d to your computer and use it in GitHub Desktop.
{
//...
// plugins
plugins: [
'karma-*',
{
'middleware:custom': ['factory', function (config) {
return function (req, res, next) {
console.log('HELLO!')
res.end('hello-world')
}
}]
}
],
// middlewares
middlewares: ['custom'],
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment