Skip to content

Instantly share code, notes, and snippets.

@artyom-poptsov
Created June 9, 2017 16:33
Show Gist options
  • Save artyom-poptsov/2c5236417c0acc2dcff1e6d3074d611a to your computer and use it in GitHub Desktop.
Save artyom-poptsov/2c5236417c0acc2dcff1e6d3074d611a to your computer and use it in GitHub Desktop.
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