package handlers import ( "net/http" "runtime" "github.com/labstack/echo/v4" "git.sr.ht/~cwpearson/replicate-jump-server/config" "git.sr.ht/~cwpearson/replicate-jump-server/store" ) func AboutGet(c echo.Context) error { ms := &runtime.MemStats{} runtime.ReadMemStats(ms) return c.JSON(http.StatusOK, map[string]any{ "version": config.GitSHA(), "build-date": config.BuildDate(), "num-images": store.NumImages(), "heap-in-use": ms.HeapInuse, }) }