Moved static root

This commit is contained in:
Felix Albrigtsen 2022-03-28 19:32:11 +02:00
parent e3dfba5a14
commit 01b7566ffc
1 changed files with 2 additions and 3 deletions

View File

@ -27,9 +27,8 @@ api.use(require('express-log-url'));
// #region frontend
// Serve static files from the React app
api.get("/", (req, res) => {
res.sendFile(path.join(__dirname, "public", "landing.html"));
});
app.use('/static', express.static(path.join(__dirname, 'clientbuild')));
// #endregion
// #region API