Moved static root
This commit is contained in:
parent
e3dfba5a14
commit
01b7566ffc
|
@ -27,9 +27,8 @@ api.use(require('express-log-url'));
|
||||||
|
|
||||||
// #region frontend
|
// #region frontend
|
||||||
// Serve static files from the React app
|
// Serve static files from the React app
|
||||||
api.get("/", (req, res) => {
|
app.use('/static', express.static(path.join(__dirname, 'clientbuild')));
|
||||||
res.sendFile(path.join(__dirname, "public", "landing.html"));
|
|
||||||
});
|
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region API
|
// #region API
|
||||||
|
|
Loading…
Reference in New Issue