check event on comment from federation

This commit is contained in:
les
2019-08-09 14:37:51 +02:00
parent 181557aa43
commit f722187c65
3 changed files with 16 additions and 16 deletions

View File

@@ -96,12 +96,12 @@ router.get('/nodeinfo', async (req, res) => {
// Handle 404
router.use(function(req, res) {
res.send('404: Page not Found', 404)
res.status(404).send('404: Page not Found')
})
// Handle 500
router.use(function(error, req, res, next) {
res.send('500: Internal Server Error', 500)
res.status(500).send('500: Internal Server Error')
})
module.exports = router