The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/xesite: add internal api call to get expvar values

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso ffa0b82a a5d061c5

+2
+2
cmd/xesite/internalapi.go
··· 2 2 3 3 import ( 4 4 "context" 5 + "expvar" 5 6 "log" 6 7 "net/http" 7 8 "path/filepath" ··· 14 15 func internalAPI(srv *tsnet.Server, fs *lume.FS) { 15 16 mux := http.NewServeMux() 16 17 18 + mux.Handle("/debug/vars", expvar.Handler()) 17 19 mux.HandleFunc("/metrics", tsweb.VarzHandler) 18 20 19 21 mux.HandleFunc("/rebuild", func(w http.ResponseWriter, r *http.Request) {