Einbau-Skript news.js für Kundenwebsites
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5a09d060a1
commit
035d1d5517
5 files changed
+547
No files matched your search
@@ -91,6 +91,12 @@ app.get('/api/health', async (_req, res) => {
|
||||
})
|
||||
})
|
||||
|
||||
// Einbau-Skript fuer Kundenwebsites: darf von fremden Seiten geladen werden, 5 Minuten Cache
|
||||
app.use('/embed/', (_req, res, next) => {
|
||||
res.set('Cache-Control', 'public, max-age=300')
|
||||
res.set('Access-Control-Allow-Origin', '*')
|
||||
next()
|
||||
})
|
||||
app.use(express.static(publicDir))
|
||||
|
||||
app.get('/dashboard.html', (req, res, next) => {
|
||||
|
||||
Reference in new issue
Block a user