summaryrefslogtreecommitdiff
path: root/pkg/app/routes.go
blob: 9cfa979b6db0dab7d458a54be2cb7482b854d36f (plain)
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
}