summaryrefslogtreecommitdiff
path: root/pkg/app/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/routes.go')
-rw-r--r--pkg/app/routes.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/app/routes.go b/pkg/app/routes.go
new file mode 100644
index 0000000..9cfa979
--- /dev/null
+++ b/pkg/app/routes.go
@@ -0,0 +1,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
+}