Merge pull request #3173 from oswaldoacauan/feature-check-endpoint

Add /check endpoint for HTML5 client
This commit is contained in:
Anton Georgiev 2016-06-13 14:00:12 -04:00 committed by GitHub
commit 9ac502f13e

View File

@ -9,6 +9,14 @@ Meteor.startup(function () {
logger.info('server start');
});
WebApp.connectHandlers.use('/check', (req, res, next) => {
let payload = { html5clientStatus: 'running' };
res.setHeader('Content-Type', 'application/json');
res.writeHead(200);
res.end(JSON.stringify(payload));
});
export const myQueue = new EventQueue();
export const eventEmitter = new (Npm.require('events').EventEmitter);