Skip to content

Commit

Permalink
🐛 [server] fix express v5 routing syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacBOS committed Aug 7, 2024
1 parent bc200ef commit 97074ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ const server = async () => {
},
);

e.get('*', (req, res) => {
//catch all other URLS and return the front end template
e.get('(.*)', (req, res) => {
res.sendFile(path.join(__dirname, '../../public/index.html'));
});

Expand Down

0 comments on commit 97074ee

Please sign in to comment.