minor changes
This commit is contained in:
@@ -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'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user