aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
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