Skip to content

Commit

Permalink
add gzip middlerware
Browse files Browse the repository at this point in the history
  • Loading branch information
datewu committed Sep 12, 2023
1 parent 941ae9f commit c3be0ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func loginRoutes(app *gtea.App, r *router.RoutesGroup) {
func myRoutes(app *gtea.App, r *router.RoutesGroup) {
h := &myHandler{app: app}
my := r.Group("/my", h.middlerware)
my.Use(handler.GzipMiddleware)
my.Get("/profile", h.profile)
my.Get("/deploys", h.deploys)
my.Get("/sts", h.sts)
Expand Down

0 comments on commit c3be0ea

Please sign in to comment.