diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-19 11:57:03 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-19 11:57:03 -0500 |
| commit | 18b269c8799a785ae376eb012f510f9eccae3c57 (patch) | |
| tree | 746b657b2d69f1c4ae391f4700d40696857dff90 /internal | |
| parent | 9a57488137f156835a45c1ce2246af6c946793bb (diff) | |
| download | x-18b269c8799a785ae376eb012f510f9eccae3c57.tar.xz x-18b269c8799a785ae376eb012f510f9eccae3c57.zip | |
xess: minify the CSS and inline all assets
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/buildinfo.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/buildinfo.go b/internal/buildinfo.go index ab1afd4..25fd14b 100644 --- a/internal/buildinfo.go +++ b/internal/buildinfo.go @@ -5,6 +5,8 @@ import ( "log/slog" "net/http" "runtime/debug" + + "within.website/x" ) func init() { @@ -16,7 +18,10 @@ func init() { return } - if err := json.NewEncoder(w).Encode(bi); err != nil { + if err := json.NewEncoder(w).Encode(struct { + BuildInfo *debug.BuildInfo `json:"build_info"` + Version string `json:"version"` + }{bi, x.Version}); err != nil { slog.Error("can't encode build info", "err", err) http.Error(w, err.Error(), http.StatusInternalServerError) return |
