Package json

This commit is contained in:
Senad Uka
2019-03-13 05:43:48 +01:00
parent b1a08a7a57
commit 7fc24add1f
2 changed files with 11 additions and 7 deletions

View File

@@ -95,4 +95,10 @@ app.post("/payforalert", function(request, response) {
});
});
// Anything that doesn't match the above, send back index.html
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname + '/../frontend-react/build/index.html'))
})
app.listen(port, () => console.log(`Example app listening on port ${port}!`));