mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-02 19:17:37 +01:00
fix: uses github.com/goccy/go-json for less CPU (#2766)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/goccy/go-json"
|
||||
|
||||
"github.com/amir20/dozzle/internal/analytics"
|
||||
"github.com/amir20/dozzle/internal/docker"
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"html/template"
|
||||
"io"
|
||||
"sort"
|
||||
|
||||
"github.com/goccy/go-json"
|
||||
|
||||
"net/http"
|
||||
"path"
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@ package web
|
||||
import (
|
||||
"compress/gzip"
|
||||
"context"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/goccy/go-json"
|
||||
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
@@ -115,6 +115,8 @@ func createRouter(h *handler) *chi.Mux {
|
||||
}
|
||||
|
||||
r.Get("/healthcheck", h.healthcheck)
|
||||
|
||||
// r.Mount("/debug", middleware.Profiler())
|
||||
})
|
||||
|
||||
if base != "/" {
|
||||
|
||||
Reference in New Issue
Block a user