This commit is contained in:
Yûki VACHOT 2021-11-12 15:57:26 +01:00
parent cda8af0b6c
commit 5e6dbdab39

View file

@ -29,7 +29,7 @@ db.mongoose
}); });
app.use(express.static(__dirname + '/dist/frontend')); app.use(express.static(__dirname + '/dist/frontend'));
app.get('/', function(req,res) { app.get('/*', function(req,res) {
res.sendFile(path.join(__dirname+ '/dist/frontend/index.html')); res.sendFile(path.join(__dirname+ '/dist/frontend/index.html'));
}); });