new chat clean up - relay page

This commit is contained in:
2025-10-09 13:51:43 -04:00
parent a006bb7fae
commit be9674cf99
6 changed files with 1276 additions and 490 deletions

View File

@@ -33,6 +33,13 @@ app.use((req, res, next) => {
next();
});
// Serve chat widget with proper CORS and content-type
app.get('/nostr-chat-widget.js', (req, res) => {
res.setHeader('Content-Type', 'application/javascript');
res.setHeader('Access-Control-Allow-Origin', '*');
res.sendFile(path.join(__dirname, 'public', 'nostr-chat-widget.js'));
});
// Proxy /api/link-status to API server on 5252
app.get('/api/link-status', async (req, res) => {
try {