diff options
Diffstat (limited to 'pkg/sts/sts.go')
| -rw-r--r-- | pkg/sts/sts.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/sts/sts.go b/pkg/sts/sts.go index ae75e8a..1030280 100644 --- a/pkg/sts/sts.go +++ b/pkg/sts/sts.go @@ -9,8 +9,13 @@ import ( ) func New(ctx context.Context) http.Handler { + mux := http.NewServeMux() + mux.HandleFunc("POST /oauth/token", func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusCreated) + }) + return x.Middleware[http.Handler]( - http.NewServeMux(), + mux, log.HTTP(log.From(ctx)), ) } |
