Skip to content

Commit c12f7e1

Browse files
committed
perf: switch to gzipped response for SearchApp to improve performance
1 parent df8624e commit c12f7e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

agent/app/api/v2/app.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package v2
22

33
import (
4+
"net/http"
5+
"time"
6+
47
"github.com/1Panel-dev/1Panel/agent/app/api/v2/helper"
58
"github.com/1Panel-dev/1Panel/agent/app/dto"
69
"github.com/1Panel-dev/1Panel/agent/app/dto/request"
710
"github.com/1Panel-dev/1Panel/agent/i18n"
811
"github.com/gin-gonic/gin"
9-
"net/http"
10-
"time"
1112
)
1213

1314
// @Tags App
@@ -28,7 +29,7 @@ func (b *BaseApi) SearchApp(c *gin.Context) {
2829
helper.InternalServer(c, err)
2930
return
3031
}
31-
helper.SuccessWithData(c, list)
32+
helper.SuccessWithDataGzipped(c, list)
3233
}
3334

3435
// @Tags App

0 commit comments

Comments
 (0)