feat(account): #49 refactor error handling

This commit is contained in:
2025-05-08 21:45:53 +02:00
parent 4744da0bee
commit 5cfea4e2d3
14 changed files with 142 additions and 119 deletions

View File

@@ -134,8 +134,7 @@ func createHandler(d *sqlx.DB, serverSettings *types.Settings) http.Handler {
middleware.CacheControl,
middleware.CrossSiteRequestForgery(authService),
middleware.Authenticate(authService),
middleware.Log,
// Gzip last, as it compresses the body
middleware.Gzip,
middleware.Log,
)
}