Correct for wildcard tightening

This commit is contained in:
Christbru 2025-10-19 07:56:32 -05:00
commit 724fb69c87

View file

@ -43,8 +43,8 @@ app.post('/api/files/import-demo', async (req, res) => {
const distDir = path.resolve(__dirname, 'dist'); const distDir = path.resolve(__dirname, 'dist');
app.use(express.static(distDir)); app.use(express.static(distDir));
// SPA fallback // SPA fallback (Express 5 requires middleware instead of bare '*')
app.get('*', (req, res) => { app.use((req, res) => {
res.sendFile(path.join(distDir, 'index.html')); res.sendFile(path.join(distDir, 'index.html'));
}); });