From 1396c4e251a2bf9eb8c8c22bd4bc25f847f38775 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 17 Jun 2025 11:52:03 -0600 Subject: feat: create sts binary and run it --- pkg/sts/sts.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkg/sts/sts.go (limited to 'pkg') diff --git a/pkg/sts/sts.go b/pkg/sts/sts.go new file mode 100644 index 0000000..ae75e8a --- /dev/null +++ b/pkg/sts/sts.go @@ -0,0 +1,16 @@ +package sts + +import ( + "context" + "net/http" + + "github.com/xlgmokha/x/pkg/log" + "github.com/xlgmokha/x/pkg/x" +) + +func New(ctx context.Context) http.Handler { + return x.Middleware[http.Handler]( + http.NewServeMux(), + log.HTTP(log.From(ctx)), + ) +} -- cgit v1.2.3