Skip to content

Commit

Permalink
vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaki-1052 committed Apr 1, 2024
1 parent 5fefd47 commit fec43b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,10 @@ app.post('/update-instructions', (req, res) => {
// Set trust proxy to ensure the server can be accessed via any host
app.set('trust proxy', true);

app.get('*', (req, res) => {
res.redirect('/public/portal.html');
});

app.get('/portal', (req, res) => {
res.sendFile('portal.html', { root: 'public' });
});
Expand Down

0 comments on commit fec43b6

Please sign in to comment.