Created
June 9, 2017 16:33
-
-
Save artyom-poptsov/2c5236417c0acc2dcff1e6d3074d611a 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 express = require ('express'); | |
var app = express (); | |
function main() { | |
app.post ('/data/3.0/measurements', function (req, res) { | |
console.log (req.headers); | |
req.on("data", function (data) { | |
console.log(data); | |
}); | |
}); | |
app.listen(8000, function () { | |
console.log("server started on port " + 8000); | |
}); | |
} | |
main (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment