From b27894fcfee8a8422ca191ccd87f641eb8befcf0 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 15 Mar 2025 15:20:53 -0600 Subject: refactor: authorize unsigned JWT in requests --- pkg/app/routes.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkg/app/routes.go (limited to 'pkg/app/routes.go') diff --git a/pkg/app/routes.go b/pkg/app/routes.go new file mode 100644 index 00000000..9cfa979b --- /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 +} -- cgit v1.2.3