diff options
Diffstat (limited to 'roseh.moe.go')
| -rw-r--r-- | roseh.moe.go | 6 |
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) |
