redirect old urls

This commit is contained in:
samcm 2017-12-30 20:38:24 +11:00
parent 8142e78f07
commit 88ce4086c3
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ root.post('/slweb/invite', (req, res) => {
})
root.use('/',express.static(path.join(__dirname, 'dist')))
root.get('/ptweb',(req,res) => {
console.log('ptweb redirect')
return res.redirect('/slweb')
})
root.get('*',(req,res) => {
console.log('Catch all')
return res.redirect('/')