This commit is contained in:
2020-04-18 03:26:55 +02:00
parent 82dc4b0e6c
commit 2fda1899c1

View File

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