diff --git a/checklinks.js b/checklinks.js index c6af85c..6562e52 100644 --- a/checklinks.js +++ b/checklinks.js @@ -14,7 +14,7 @@ const links = [ "https://nosotros.btcforplebs.com", "https://mint.btcforplebs.com", "https://cashu.btcforplebs.com", - "https://shipyard.btcforplebs.com", + "https://fevela.btcforplebs.com", "https://live.btcforplebs.com", "https://nsec.btcforplebs.com", "https://flotilla.btcforplebs.com", @@ -23,17 +23,17 @@ const links = [ ]; // Optional: Only allow internal requests if you're not exposing this publicly - app.use((req, res, next) => { - const origin = req.headers.origin || 'unknown'; - console.log(`Request: ${req.method} ${req.url} | Origin: ${origin}`); - res.header("Access-Control-Allow-Headers", "Content-Type"); - res.header("Access-Control-Allow-Origin", "*"); - res.header("Access-Control-Allow-Methods", "GET, OPTIONS"); - - if (req.method === 'OPTIONS') { - return res.sendStatus(200); - } - next(); +app.use((req, res, next) => { + const origin = req.headers.origin || 'unknown'; + console.log(`Request: ${req.method} ${req.url} | Origin: ${origin}`); + res.header("Access-Control-Allow-Headers", "Content-Type"); + res.header("Access-Control-Allow-Origin", "*"); + res.header("Access-Control-Allow-Methods", "GET, OPTIONS"); + + if (req.method === 'OPTIONS') { + return res.sendStatus(200); + } + next(); }); app.get("/", (req, res) => { diff --git a/public/index.html b/public/index.html index 06b77df..5f2a575 100644 --- a/public/index.html +++ b/public/index.html @@ -1,151 +1,170 @@ + - - - BTCforPlebs + + + BTCforPlebs - - + + - - - - - - + + + + + + - - + + - - - - - + + + + + - - - -
+ + + + +

Welcome to BTCforPlebs

A place to help ordinary people learn about Bitcoin

Profile Picture - -Learn About Bitcoin -Learn About Nostr -Learn About Cashu -Bitcoin & The Bible + + Learn About Bitcoin + Learn About Nostr + Learn About Cashu + Bitcoin & The Bible - - - + + + - - - + + + - - - + + + - BTCforPlebs Live -

+ BTCforPlebs Live +

- 🟢 = online | 🔴 = offline | ⚪️ = external site -

+ 🟢 = online | 🔴 = offline | ⚪️ = external site +

- - - - const apiEndpoint = "/api/link-status"; + + - + - + + \ No newline at end of file