🕍🍂 Checkpoint

./app.js:7435365/15
This commit is contained in:
Glitch (hello-express) 2019-12-21 04:13:55 +00:00
parent c3f72650f5
commit c4485b07ab

3
app.js
View File

@ -127,12 +127,13 @@ app.get("/data", function (request, response) {
response.send(result); // sends dbUsers back to the page response.send(result); // sends dbUsers back to the page
}); });
}); });
*/
app.get('/reset', (req, res) => { app.get('/reset', (req, res) => {
Readings.sync({ force: true }); Readings.sync({ force: true });
res.status(200).send('OK').end(); res.status(200).send('OK').end();
}) })
*/
// listen for requests :) // listen for requests :)
const listener = app.listen(process.env.PORT, function() { const listener = app.listen(process.env.PORT, function() {