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 @@

- +