From 1ae99749e30e24db60e51a32925a7ddb17897740 Mon Sep 17 00:00:00 2001 From: "Denise D." Date: Tue, 11 Aug 2026 16:59:35 +0200 Subject: [PATCH] minor changes --- backend/src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/app.js b/backend/src/app.js index 7a6d4be..ae0dcc9 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -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')); });