Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo3ein <ho3ein.sanaei@gmail.com>2023-12-10 17:42:52 +0300
committerGitHub <noreply@github.com>2023-12-10 17:42:52 +0300
commite3f1d3c892a1af48f27fdc36f273a55f38d13b40 (patch)
treeb11d0c1ed3c15c8f6f891a5e6df8e021d5db8ab6 /web/web.go
parent36cf7c0a8fda915b51e75958ce729fd9a61a5c90 (diff)
parent9fbe80f87f950673058f0001b3704251fa8b9243 (diff)
huge changes
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go
index abf2d6c1..51b7603c 100644
--- a/web/web.go
+++ b/web/web.go
@@ -25,6 +25,7 @@ import (
sessions "github.com/Calidity/gin-sessions"
"github.com/Calidity/gin-sessions/cookie"
+ "github.com/gin-contrib/gzip"
"github.com/gin-gonic/gin"
"github.com/robfig/cron/v3"
)
@@ -174,6 +175,7 @@ func (s *Server) initRouter() (*gin.Engine, error) {
if err != nil {
return nil, err
}
+ engine.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedPaths([]string{basePath + "panel/API/"})))
assetsBasePath := basePath + "assets/"
store := cookie.NewStore(secret)