mirror of
https://github.com/Lomanic/presence-button-web
synced 2024-11-22 21:47:29 +00:00
🏮⛩ Checkpoint
./server.js:933874/197
This commit is contained in:
parent
28f4460d27
commit
e32d24d4d9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user