From bb6be5588b398ef05a88e9988ef26361265d8bf1 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 17 Oct 2024 11:57:57 -0700 Subject: Remove go 1.23 routing. --- roseh.moe.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'roseh.moe.go') diff --git a/roseh.moe.go b/roseh.moe.go index 0a0b3d6..f4783c5 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -46,13 +46,9 @@ func main() { s := &server{ jellyfinProxy: httputil.NewSingleHostReverseProxy(jellyfinURL), } - http.HandleFunc("GET /{$}", s.index) + http.HandleFunc("/", s.index) http.HandleFunc("/cinema", s.cinema) http.HandleFunc("/cinema/", s.cinema) - http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - log.Printf("invalid path %#v", r.URL.Path) - http.Error(w, "not found", http.StatusNotFound) - }) addr := fmt.Sprintf(":%d", *port) log.Printf("Listening on %q", addr) -- cgit v1.3.1