make all test work again locally
This commit is contained in:
@@ -34,6 +34,8 @@ 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))
|
||||
req.url = req.url.substring(13);
|
||||
if (!/^\/API\/.*/.test(req.url)) {
|
||||
return res.sendFile(path.join(__dirname, 'frontend', 'index.html'));
|
||||
} else return next();
|
||||
|
||||
Reference in New Issue
Block a user