Skip to content

Commit

Permalink
fix(mobile): disable mobile view until rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Nov 1, 2023
1 parent 34ff067 commit f446c99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ restores/
public/uploads/assets/upload/

stats\.json

dist/
*.heapsnapshot
7 changes: 5 additions & 2 deletions src/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ module.exports = function (app, db, callback) {
})
})

// Mobile
app.use('/mobile', express.static(path.join(__dirname, '../../', 'mobile')))
// Mobile - Disable mobile view until rewrite due to a security bug
// app.use('/mobile', express.static(path.join(__dirname, '../../', 'mobile')))
app.use('/mobile', (req, res, next) => {
return res.redirect('/')
})

app.use('/assets', express.static(path.join(__dirname, '../../public/uploads/assets')))
app.use('/uploads/users', express.static(path.join(__dirname, '../../public/uploads/users')))
Expand Down

0 comments on commit f446c99

Please sign in to comment.