mirror of
https://api.glitch.com/git/presence-button
synced 2024-11-05 10:57:30 +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