From 864150041432f71bebbe867acda47ff2dfe23fed Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 21 Apr 2022 16:39:35 +0200 Subject: [PATCH] Fix login-url --- src/server/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/server/index.js b/src/server/index.js index 9bb5748..d7770cb 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -8,7 +8,7 @@ let tmdb = require("./tmdb.js"); // #region Express setup const app = express(); -const port = 3001; +const port = 3000; app.listen(port, () => { console.log(`Listening on port ${port}`) }) @@ -36,15 +36,10 @@ api.use(require('express-log-url')); // Serve static files from the React app app.use('/', express.static(path.join(__dirname, 'clientbuild'))); -// app.use('/tournament/', express.static(path.join(__dirname, 'clientbuild', 'index.html'))); +app.use('/login', express.static(path.join(__dirname, 'clientbuild', 'index.html'))); app.use('/tournament/*', express.static(path.join(__dirname, 'clientbuild', 'index.html'))); app.use('/static', express.static(path.join(__dirname, 'clientbuild/static'))); app.use('/static/*', express.static(path.join(__dirname, 'clientbuild/static'))); -// app.get('/*', function (req, res) { - // res.sendFile(path.join(__dirname, 'clientbuild', 'index.html')); -// }); -// app.use('/*', express.static(path.join(__dirname, 'clientbuild'))); - // #endregion // #region PASSPORT / OAUTH