feat(cli,app): compress http responses
arcad/edge/pipeline/head This commit looks good
Details
arcad/edge/pipeline/head This commit looks good
Details
This commit is contained in:
parent
b5b4042cc7
commit
c7b639b643
|
@ -221,6 +221,7 @@ func runApp(ctx context.Context, path string, address string, storageFile string
|
||||||
|
|
||||||
router := chi.NewRouter()
|
router := chi.NewRouter()
|
||||||
router.Use(middleware.Logger)
|
router.Use(middleware.Logger)
|
||||||
|
router.Use(middleware.Compress(5))
|
||||||
|
|
||||||
// Add app handler
|
// Add app handler
|
||||||
router.Handle("/*", handler)
|
router.Handle("/*", handler)
|
||||||
|
|
Loading…
Reference in New Issue