ingestor.js 415 B

12345678910111213141516171819
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 04/09/15 S
  7. * Time: 08:57
  8. */
  9. /**
  10. * @param IncomingMessages req
  11. * @param ServerResponse res
  12. * @param function next
  13. */
  14. WebApp.connectHandlers.use('/hello', function (req, res, next) {
  15. res.writeHead(200);
  16. res.end("Hello from Meteor " + Meteor.release);
  17. PushFeed.insert({"timestamp": new Date()});
  18. });