summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorherkulessi <git@herkulessi.de>2026-07-06 15:40:07 +0200
committerherkulessi <git@herkulessi.de>2026-07-06 15:40:07 +0200
commitc928a3776859f2f834a8d3148cb0436a14e3e86a (patch)
treef1548deb66833ca8361f08f8de94017e4be81022 /main.go
parentaccc7d850319324336836b62bd4309469c0d26f1 (diff)
204 webroot
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index cd8c20f..0742907 100644
--- a/main.go
+++ b/main.go
@@ -131,6 +131,7 @@ func main() {
migrate(id)
http.Redirect(w, r, "https://notes.stuve.fau.de/stuve-etherpad-migrated-"+id, 302)
})
+ http.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) {w.WriteHeader(204)})
err = http.ListenAndServe("[::]:8080", nil)
panic(err)
}