diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-01-25 10:14:41 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-01-25 10:14:41 +0100 |
| commit | df8be998ab126be9868015d40740739809384567 (patch) | |
| tree | d584f8a334c248ec7d1834c5cb7a5d28a13443a1 | |
| parent | 975158b1a2c6a1fbd79b93c6ee1aae127b8672c1 (diff) | |
| download | ticket-counter-df8be998ab126be9868015d40740739809384567.tar.gz ticket-counter-df8be998ab126be9868015d40740739809384567.zip | |
only serve / and no other path with our page handler
| -rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
