This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/middleware/gzip.go
Tim f826718c03
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 47s
#73 begin implement keycloak
2024-08-25 21:52:35 +02:00

12 lines
163 B
Go

package middleware
import (
"net/http"
"github.com/NYTimes/gziphandler"
)
func Gzip(next http.Handler) http.Handler {
return gziphandler.GzipHandler(next)
}