Fix the path

This commit is contained in:
Senad Uka
2019-03-14 05:57:17 +01:00
parent a6df827cd1
commit 13a9886292

View File

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