remove old error handler

This commit is contained in:
2023-09-07 17:09:44 +02:00
parent 5cf99cc9dc
commit b3291a65ae
-9
View File
@@ -10,15 +10,6 @@ import player from './player'
const router = Router()
router.use('/*', (req, res, next) => {
try {
next()
} catch (error) {
res.status(500).send({ errors: [{ msg: 'Internal Error! You\'d better report this' }] })
console.error(error)
}
})
// auth middleware
router.post(
'/*',