Skip to content

Instantly share code, notes, and snippets.

@sesam
Last active August 29, 2015 14:10
Show Gist options
  • Save sesam/d751323259bc93485097 to your computer and use it in GitHub Desktop.
Save sesam/d751323259bc93485097 to your computer and use it in GitHub Desktop.
hook_test
module['exports'] = function anything_goes (hook) {
hook.debug(hook.params);
var p1 = hook.params['p1'];
hook.debug(p1);
var stream = hook.open(p1);
stream.pipe(hook.res)
};
module['exports'].schema = {
"p1": {
"type": "string"
},
"p2": {
"type": "string"
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment