1
0
mirror of https://api.glitch.com/git/presence-button synced 2024-11-05 13:37:30 +00:00

🏮⛩ Checkpoint

./server.js:933874/197
This commit is contained in:
Glitch (hello-express) 2019-11-03 14:25:00 +00:00
parent 28f4460d27
commit e32d24d4d9

View File

@ -30,7 +30,8 @@ app.get("/img", (req, res) => {
} }
}); });
app.get("/api", (req, res) => { app.get("/api", (req, res) => {
res.send(fuzIsOpen && new Date().getTime() - 5 * 1000 < lastSeen.getTime()) console.log(fuzIsOpen, new Date() - 5 * 1000 < lastSeen)
res.send(fuzIsOpen && new Date() - 5 * 1000 < lastSeen)
}); });
// http://expressjs.com/en/starter/basic-routing.html // http://expressjs.com/en/starter/basic-routing.html