mirror of
https://api.glitch.com/git/presence-button
synced 2024-11-05 10:37:29 +00:00
🐋💁 Checkpoint
./server.js:933874/13077
This commit is contained in:
parent
5105785b75
commit
38c520b9d5
21
server.js
21
server.js
@ -59,12 +59,21 @@ app.get("/api", (req, res) => {
|
|||||||
"Access-Control-Allow-Headers",
|
"Access-Control-Allow-Headers",
|
||||||
"Origin, X-Requested-With, Content-Type, Accept"
|
"Origin, X-Requested-With, Content-Type, Accept"
|
||||||
);
|
);
|
||||||
res.send({
|
res.header("Content-Type", "application/json");
|
||||||
fuzIsOpen,
|
res.send(
|
||||||
lastSeen,
|
JSON.stringify(
|
||||||
lastClosed,
|
{
|
||||||
processUptime: new Date(process.uptime() * 1000).toISOString().substr(11, 8)
|
fuzIsOpen,
|
||||||
});
|
lastSeen,
|
||||||
|
lastClosed,
|
||||||
|
processUptime: new Date(process.uptime() * 1000)
|
||||||
|
.toISOString()
|
||||||
|
.substr(11, 8)
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
4
|
||||||
|
)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/status", (req, res) => {
|
app.get("/status", (req, res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user