minor changes

This commit is contained in:
2026-08-11 16:59:35 +02:00
parent 4323152266
commit 1ae99749e3
+2
View File
@@ -73,6 +73,8 @@ app.post('/api/documents', upload.array('documents'), async (req, res) => {
const frontendDistPath = path.join(__dirname, '../dist');
app.use(express.static(frontendDistPath));
// Any GET request that didn't match an API route above gets served index.html
app.get('*', (req, res) => {
res.sendFile(path.join(frontendDistPath, 'index.html'));
});