mirror of
https://api.glitch.com/git/presence-button
synced 2025-12-04 08:06:31 +00:00
🏮⛩ Checkpoint
./server.js:933874/197
This commit is contained in:
parent
28f4460d27
commit
e32d24d4d9
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue