This commit is contained in:
2020-04-18 03:24:20 +02:00
parent d0157f67b3
commit b82108aabd

View File

@@ -35,6 +35,7 @@ app.use(express.static(path.join(__dirname, 'frontend')));
app.use(express.static(`${__dirname}/./frontend`));
app.all("/*", function (req, res, next) {
if (!/\/simcompanies\/API\/.*/.test(req.url)) {
console.log("call")
return res.sendFile(path.join(__dirname, 'frontend', 'index.html'));
} else return next();
})