Skip to content

Instantly share code, notes, and snippets.

@yawnt
Created March 16, 2013 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yawnt/e5dd65abae82ba024cc2 to your computer and use it in GitHub Desktop.
Save yawnt/e5dd65abae82ba024cc2 to your computer and use it in GitHub Desktop.
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