1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package app import ( "net/http" "gitlab.com/mokhax/spike/pkg/prxy" ) func Routes() http.Handler { mux := http.NewServeMux() mux.Handle("/", prxy.New(map[string]string{ "idp.example.com": "http://localhost:8282", "ui.example.com": "http://localhost:8283", "api.example.com": "http://localhost:8284", })) return mux }