Created
July 18, 2014 18:25
-
-
Save reconbot/37046cca84cf163b7c81 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 circleNotifier = require('./circle'); | |
var SparkStatus = require('./spark'); | |
// later | |
app.use('/test', function(req,res,next){ | |
console.log(req); | |
var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress; | |
spark.write("Testing from:\n" + ip, function(err, retval){ | |
res.end(JSON.stringify({err: err, retval: retval})); | |
}); | |
spark.testBacklight(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment