add recovery helper to help with panics in handlers

This commit is contained in:
Henry 2021-04-01 08:11:11 +02:00
parent 59a5fe44a4
commit da62b1eecc
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ func New(
// apply HTTP middleware
middlewares := []func(http.Handler) http.Handler{
logging.RecoveryHandler(),
logging.InjectHandler(logger),
members.ContextInjecter(dbs.Members, authWithPassword, authWithSSB),
CSRF,