aboutsummaryrefslogtreecommitdiff
path: root/cmd/within.website
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-08-02 07:24:35 -0400
committerXe Iaso <me@xeiaso.net>2023-08-02 07:24:35 -0400
commit3473dd3f47a405a610e50949e6c38ed60e0ad0c7 (patch)
treeb66172016c074493eea1373fea8388609ee28a61 /cmd/within.website
parent8b3c21be2f6c51e0e26e283d40439bb67fd1151c (diff)
downloadx-3473dd3f47a405a610e50949e6c38ed60e0ad0c7.tar.xz
x-3473dd3f47a405a610e50949e6c38ed60e0ad0c7.zip
some more slog fun
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/within.website')
-rw-r--r--cmd/within.website/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/within.website/main.go b/cmd/within.website/main.go
index 1b782f6..85029f5 100644
--- a/cmd/within.website/main.go
+++ b/cmd/within.website/main.go
@@ -10,6 +10,7 @@ import (
"go.jetpack.io/tyson"
"golang.org/x/exp/slog"
+ "tailscale.com/tsweb"
"within.website/x/internal"
"within.website/x/web/vanity"
)
@@ -69,6 +70,7 @@ func main() {
repo.RegisterHandlers(lg)
}
+ http.HandleFunc("/debug/varz", tsweb.VarzHandler)
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "text/html")
if r.URL.Path != "/" {