diff options
Diffstat (limited to 'roseh.moe.go')
| -rw-r--r-- | roseh.moe.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/roseh.moe.go b/roseh.moe.go index ea7f4a3..d69ec06 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -52,15 +52,12 @@ var static embed.FS func main() { flag.Parse() + mux := http.NewServeMux() jellyfinURL, err := url.Parse("http://localhost:8096") if err != nil { log.Fatalf("Jellyfin URL: %s", err) } - - mux := http.NewServeMux() - jellyfinProxy := httputil.NewSingleHostReverseProxy(jellyfinURL) - mux.Handle("/cinema", jellyfinProxy) - mux.Handle("/cinema/", jellyfinProxy) + mux.Handle("/cinema/", httputil.NewSingleHostReverseProxy(jellyfinURL)) mux.Handle("/static/", http.FileServerFS(static)) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/" { |
