blob: ff1291c2d3b76e49dc3cbd861d3d71c300b19ac5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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{
"api.example.com": "http://localhost:8284",
"authzd.example.com": "http://localhost:50051",
"idp.example.com": "http://localhost:8282",
"ui.example.com": "http://localhost:8283",
}))
return mux
}
|