Created
March 12, 2016 09:12
-
-
Save shrunyan/2fe58356485aa67827e2 to your computer and use it in GitHub Desktop.
troll express middlware
This file contains hidden or 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
app.get('/troll', (req, res) => {res.sendStatus([200,400,500,422][Math.floor(Math.random() * 4)])}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment