diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-15 15:20:53 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-15 15:20:53 -0600 |
| commit | b27894fcfee8a8422ca191ccd87f641eb8befcf0 (patch) | |
| tree | 503b19478f05ca2433082a3c9838e0c6ae401772 /pkg/app/routes.go | |
| parent | 80f1b83544b3482cbcdab8cdf521a92f2afdfa16 (diff) | |
refactor: authorize unsigned JWT in requests
Diffstat (limited to 'pkg/app/routes.go')
| -rw-r--r-- | pkg/app/routes.go | 17 |
1 files changed, 17 insertions, 0 deletions
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 +} |
