fixed catch-all routing
This commit is contained in:
parent
b36feabc98
commit
faf01f9831
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
||||
/client/node_modules/
|
||||
|
||||
keys.txt
|
||||
.env
|
||||
|
||||
/fd-client/DS_Store
|
||||
/fd-client/fdk/
|
||||
|
||||
@ -668,7 +668,7 @@ initDb().then(() => {
|
||||
|
||||
app.use(express.static(path.join(__dirname, 'frontend/dist')));
|
||||
app.use('/media', express.static(path.join(__dirname, 'media')));
|
||||
app.get('*', (req, res) => {
|
||||
app.get('/*', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'frontend/dist', 'index.html'));
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user