9
0
mirror of https://github.com/Lomanic/presence-button-web synced 2024-11-25 23:17:29 +00:00

🎀💾 Checkpoint

./server.js:933874/11018
./views/index.html:933874/32981
This commit is contained in:
Glitch (hello-express) 2019-11-10 23:36:07 +00:00
parent 25cc30b57f
commit 5cbdcea16e
2 changed files with 14 additions and 4 deletions

View File

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

View File

@ -46,12 +46,15 @@
<section class="dreams">
<ul id="dreams">
<li><a href="/img">image API</a><img src="/img" height="15px" width="15px"></li>
<li>
<a href="/img">image API</a
><img src="/img" height="15px" width="15px" />
</li>
<li><a href="/api">ajax API</a></li>
</ul>
</section>
<h2>API minimalistic documentation</h2>
<p>
API small documentation:<br />
<code>{"fuzIsOpen":true,"lastSeen":"2019-11-03T16:25:24.385Z"}</code
><br />
The JSON means that the last notification sent by the presence button
@ -61,7 +64,11 @@
</p>
</main>
<footer>Made with <a href="https://glitch.com">Glitch</a>!</footer>
<footer>
Made with <a href="https://glitch.com">Glitch</a>! Icons made by
<a href="https://www.flaticon.com/authors/smashicons">Smashicons</a> from
<a href="https://www.flaticon.com/">www.flaticon.com</a>
</footer>
<!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix -->