mirror of
				https://api.glitch.com/git/presence-button
				synced 2025-10-31 12:45:35 +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) => { | ||||
|   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) { | ||||
|  | ||||
| @ -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 --> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user