From df8be998ab126be9868015d40740739809384567 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 25 Jan 2026 10:14:41 +0100 Subject: only serve / and no other path with our page handler --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index fb69638..5cb485c 100644 --- a/main.go +++ b/main.go @@ -18,6 +18,11 @@ var open atomic.Uint64 var done atomic.Uint64 func pageHandler(w http.ResponseWriter, r *http.Request) { + if r.URL.Path != "/" { + w.WriteHeader(http.StatusNotFound) + return + } + tempData := struct { Open uint64 Done uint64 -- cgit v1.2.3