Network Weekend (Marty 2026-11-17): ribbon + date-gated chatbot fact (any IAP $10+ pack unlocks Stack POL Pro)
netdeals.js + /assets/netweekend.js (/api/network-deals from the hub), loaded on every page by layout.js. FACTS line live Fri 11-27 00:00 CT to Tue 12-01 00:00 CT (WEEKEND_NOW test clock). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -210,6 +210,7 @@ const server = http.createServer((req, res) => {
|
||||
if (p.startsWith('/api/chat') || p.startsWith('/api/admin/kb')) { chatbot.handle(req, res, p, u, { json: chatJson, readBody: chatBody, isAdmin: () => false })
|
||||
.then(done => { if (!done) chatJson(res, 404, { error: 'Not found' }); }).catch(e => { console.error('[stackpol] chat', e.message); if (!res.headersSent) chatJson(res, 500, { error: 'Server error' }); }); return; }
|
||||
if (req.method !== 'GET' && req.method !== 'HEAD') { res.writeHead(405); return res.end(); }
|
||||
if (p === '/api/network-deals' && req.method === 'GET') return require('./netdeals').handle(req, res, 'stackpol'); // Network Weekend ribbon (2026-11-17)
|
||||
if (p === '/api/totals') return send(req, res, 200, 'application/json', JSON.stringify({ at: IDX ? IDX.at : null, network: net(), programs: (IDX && IDX.programs) || {} }), 'public, max-age=120');
|
||||
if (p === '/health') return send(req, res, 200, 'text/plain', 'ok', 'no-store');
|
||||
// ?ref=<username> of a Pro member (Marty 2026-11-09): every call to action credits them (join links, game links, program
|
||||
|
||||
Reference in New Issue
Block a user