From 1a0aecd64165f4092811ce49e3e43a971554ae58 Mon Sep 17 00:00:00 2001 From: Oliver Boehlk Date: Sat, 18 Apr 2020 02:57:21 +0200 Subject: [PATCH] change path in backend --- backend/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/index.js b/backend/index.js index 32904c8..885a8aa 100644 --- a/backend/index.js +++ b/backend/index.js @@ -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 (!/^\/simcompanies\/API\/.*/.test(req.url)) { return res.sendFile(path.join(__dirname, 'frontend', 'index.html')); } else return next(); })