mirror of
https://github.com/Lomanic/presence-button-web
synced 2024-11-22 21:47:29 +00:00
🎀💾 Checkpoint
./server.js:933874/11018 ./views/index.html:933874/32981
This commit is contained in:
parent
25cc30b57f
commit
5cbdcea16e
@ -26,7 +26,10 @@ app.get("/", (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.get("/img", (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("Pragma", "no-cache");
|
||||||
res.header("Expires", "0");
|
res.header("Expires", "0");
|
||||||
if (fuzIsOpen && new Date() - closingTimeout < lastSeen) {
|
if (fuzIsOpen && new Date() - closingTimeout < lastSeen) {
|
||||||
|
@ -46,12 +46,15 @@
|
|||||||
|
|
||||||
<section class="dreams">
|
<section class="dreams">
|
||||||
<ul id="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>
|
<li><a href="/api">ajax API</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
<h2>API minimalistic documentation</h2>
|
||||||
<p>
|
<p>
|
||||||
API small documentation:<br />
|
|
||||||
<code>{"fuzIsOpen":true,"lastSeen":"2019-11-03T16:25:24.385Z"}</code
|
<code>{"fuzIsOpen":true,"lastSeen":"2019-11-03T16:25:24.385Z"}</code
|
||||||
><br />
|
><br />
|
||||||
The JSON means that the last notification sent by the presence button
|
The JSON means that the last notification sent by the presence button
|
||||||
@ -61,7 +64,11 @@
|
|||||||
</p>
|
</p>
|
||||||
</main>
|
</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
|
<!-- include the Glitch button to show what the webpage is about and
|
||||||
to make it easier for folks to view source and remix -->
|
to make it easier for folks to view source and remix -->
|
||||||
|
Loading…
Reference in New Issue
Block a user