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')); });