QR-Generator, Ordner-Sharing, Baustellenschild weg, Button-Fix

This commit is contained in:
2026-06-05 00:28:53 +02:00
parent 8ef217c49b
commit fa1eca6867
8 changed files with 624 additions and 16 deletions

View File

@@ -67,6 +67,7 @@ fs.readdirSync(toolsDir, { withFileTypes: true })
});
app.use('/api/tools/snippets', require('./tools/snippets/routes'));
app.use('/api/tools/qrcodes', require('./tools/qrcodes/routes'));
const PUBLIC = path.join(__dirname, '../public');
@@ -78,9 +79,7 @@ app.get('/manifest.json', (_req, res) => {
app.get('/sw.js', (_req, res) => {
res.setHeader('Content-Type', 'application/javascript');
res.setHeader('Service-Worker-Allowed', '/');
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate');
res.setHeader('Pragma', 'no-cache');
res.setHeader('Expires', '0');
res.setHeader('Cache-Control', 'no-cache');
res.sendFile(path.join(PUBLIC, 'sw.js'));
});