12 lines
426 B
JavaScript
12 lines
426 B
JavaScript
|
|
import '../imports/api/';
|
||
|
|
import './google-oauth.js';
|
||
|
|
import connectRoute from 'connect-route';
|
||
|
|
|
||
|
|
// Got the below code from:
|
||
|
|
// https://docs.meteor.com/packages/webapp.html
|
||
|
|
WebApp.connectHandlers.use(connectRoute((router) => {
|
||
|
|
router.get('/ping', (req, res, next) => {
|
||
|
|
//TODO: Change ping / pong to something appropriate for a browser plugin reporting user/machine data and requesting updates.
|
||
|
|
res.end("pong");
|
||
|
|
});
|
||
|
|
}));
|