Added gzip middleware

This commit is contained in:
2025-02-13 22:23:35 +11:00
parent cab6be063f
commit 15c2dcc46f
2 changed files with 34 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ func NewServer(
handler = middleware.ExcludedFiles(handler)
handler = middleware.Favicon(handler)
// Gzip
handler = middleware.Gzip(handler)
// Start the timer for the request chain so logger can have accurate info
handler = middleware.StartTimer(handler)
return handler