Now serving whole app

This commit is contained in:
Senad Uka
2019-03-14 16:50:25 +01:00
parent 13a9886292
commit 2669aaa9eb
2 changed files with 2 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ app.post("/payforalert", function(request, response) {
});
});
app.use(express.static(path.join(__dirname, 'frontend-react/build')));
// Anything that doesn't match the above, send back index.html
app.get('*', (req, res) => {