Commit 65ad9c1f authored by Jasper Verbeet's avatar Jasper Verbeet 🙇🏻

Minor logging

parent cfdf907b
......@@ -95,6 +95,7 @@ app.get('/api/notification', (req, res) => {
});
app.get('/api/status', (req, res) => {
console.log(colors.yello(`Polling from website`));
res.json({result: getDbItem('status')});
});
......@@ -146,6 +147,7 @@ app.post('/api/accept', (req, res) => {
});
app.post('/api/details', (req, res) => {
console.log(colors.yello(`Polling from app`));
const expected = ['total_weight', 'current_weight', 'long', 'lat',];
const exact = expected.filter((val) => !(val in req.body));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment