summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-10-17 11:57:57 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-10-17 11:57:57 -0700
commitbb6be5588b398ef05a88e9988ef26361265d8bf1 (patch)
tree2c52944a995a4cccd14be267cbe29eb3f3419b96
parent2eb24aa8ef948eb1bac14548e452999ba5de65dc (diff)
downloadroseh.moe-bb6be5588b398ef05a88e9988ef26361265d8bf1.tar.zst
Remove go 1.23 routing.
-rw-r--r--roseh.moe.go6
1 files changed, 1 insertions, 5 deletions
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)