routing fix

This commit is contained in:
Maciej Kotowski committed 2021-10-04 17:22:40 +02:00
1 parent b80ebbaada
commit 94ce6aa806
1 file changed
+3 -1
+3 -1
View File
@@ -55,7 +55,9 @@ app.post("/api/createEvent", (req, res) => {
res.status(200).json("ok");
});
});
app.use((req, res, next) => {
res.sendFile(path.join(__dirname+'/client/build/index.html'));
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});