correctly verify http-signature

This commit is contained in:
lesion
2019-08-02 17:29:55 +02:00
parent 40f7ffa99e
commit 9b2015f46f
5 changed files with 39 additions and 51 deletions

View File

@@ -103,12 +103,12 @@ api.get('/event/:month/:year', eventController.getAll)
// Handle 404
api.use(function(req, res) {
res.send('404: Page not Found', 404)
res.status(404).send('404: Page not Found')
})
// Handle 500
api.use(function(error, req, res, next) {
res.send('500: Internal Server Error', 500)
res.status(500).send('500: Internal Server Error')
})