From 5cbdcea16ed185ca2f398bfd9770be41ee505c76 Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Sun, 10 Nov 2019 23:36:07 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=80=F0=9F=92=BE=20Checkpoint=20./serve?= =?UTF-8?q?r.js:933874/11018=20./views/index.html:933874/32981?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 5 ++++- views/index.html | 13 ++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 1bea60d..3115c9d 100644 --- a/server.js +++ b/server.js @@ -26,7 +26,10 @@ app.get("/", (req, res) => { }); app.get("/img", (req, res) => { - res.header("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate"); + res.header( + "Cache-Control", + "no-store, no-cache, must-revalidate, proxy-revalidate" + ); res.header("Pragma", "no-cache"); res.header("Expires", "0"); if (fuzIsOpen && new Date() - closingTimeout < lastSeen) { diff --git a/views/index.html b/views/index.html index 9e60909..e0d8621 100644 --- a/views/index.html +++ b/views/index.html @@ -46,12 +46,15 @@
+

API minimalistic documentation

- API small documentation:
{"fuzIsOpen":true,"lastSeen":"2019-11-03T16:25:24.385Z"}
The JSON means that the last notification sent by the presence button @@ -61,7 +64,11 @@

- +