-
-
Save yawnt/e5dd65abae82ba024cc2 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
var acceptHack = function(fn) { | |
return function(req, res) { | |
// check for xml or json | |
fn(function(data) { | |
res.end(data); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment