Initial commit - cloned the Svelte todo's app with google login enabled as a starting point. This system will initially be used to let the chrome extension for students report which computers are used by which students and when.
This commit is contained in:
12
server/main.js
Normal file
12
server/main.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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");
|
||||
});
|
||||
}));
|
||||
Reference in New Issue
Block a user