From 0d165e4835bff8b06a36b8605f2500baa6ad3103 Mon Sep 17 00:00:00 2001 From: Carlos Yakimov Date: Sun, 14 Apr 2019 19:52:28 -0400 Subject: [PATCH] Use a Subrouter to properly handle multiple paths --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ac10a33..2d0cbd9 100644 --- a/main.go +++ b/main.go @@ -76,7 +76,7 @@ func router() *mux.Router { } for _, route := range config.Routes { - h := router.Host(route.Host) + h := router.Host(route.Host).Subrouter() for _, path := range route.HTTP.Paths { upstream := upstreams[path.Upstream]