aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Govorov <me@govorov.online>2026-03-30 06:02:30 +0100
committerNikolay Govorov <me@govorov.online>2026-03-30 06:02:30 +0100
commite864164257ae4e7d9ff0dc81cf440dda90ed1158 (patch)
tree5ff57a8b7ef09ad262778af1874352be7a9c23de
parent35e4a967c54551caed5507b44dfb9469d2fb960b (diff)
downloadtar
tar.gz
tar.bz2
tar.lz
tar.xz
tar.zst
zip
Just a index.html
Diffstat
-rw-r--r--cmd/mirumd/main.go4+4 −0
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/mirumd/main.go b/cmd/mirumd/main.go
index 1960fc4..19afd6a 100644
--- a/cmd/mirumd/main.go
+++ b/cmd/mirumd/main.go
@@ -242,6 +242,10 @@ func main() {
}
mux := http.NewServeMux()
+ mux.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) {
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
+ fmt.Fprint(w, `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Mirum</title></head><body><h1>Mirum</h1><p>CI server is running.</p></body></html>`)
+ })
mux.HandleFunc("POST /webhook", func(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(r.Body)
if err != nil {