i have flu
This commit is contained in:
6
main.go
6
main.go
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user