Skip to content

Instantly share code, notes, and snippets.



Created Sep 11, 2015
What would you like to do?
My first microservice
module['exports'] = function simpleHttpRequest (hook) {
// npm modules available, see:
var request = require('request');
request.get('', function(err, res, body){
if (err) {
return hook.res.end(err.messsage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment