Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Use a Subrouter to properly handle multiple paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cyakimov committed Apr 16, 2019
1 parent 11b9b19 commit 0d165e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0d165e4

Please sign in to comment.