Fix login-url

This commit is contained in:
Felix Albrigtsen 2022-04-21 16:39:35 +02:00
parent dd83b1f8f8
commit 8641500414
1 changed files with 2 additions and 7 deletions

View File

@ -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