Last active
April 4, 2016 22:25
-
-
Save tjmehta/bad8199c1f82ca018be50ad74ee7ad5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//... | |
// 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