i have flu

This commit is contained in:
2026-06-28 09:50:02 +03:00
parent 14e8a23dbb
commit 35191db4fb
6 changed files with 348 additions and 220 deletions

View File

@@ -35,9 +35,6 @@ func gzipHandler(next http.Handler) http.Handler {
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "index.html")
})
mux.HandleFunc("/ABSTRACTS.png", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "ABSTRACTS.png")
})
@@ -48,6 +45,9 @@ func main() {
log.Fatalf("blog: %v", err)
}
// Landing page — served by blog package so htmx can swap between sections
mux.HandleFunc("/", blog.ServeLanding)
log.Println("listening on :8000")
http.ListenAndServe(":8000", gzipHandler(mux))
}