Archived
routing fix
This commit is contained in:
1 parent
b80ebbaada
commit
94ce6aa806
1 file changed
+3
-1
@@ -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}`);
|
||||
});
|
||||
Reference in new issue
Block a user